Merge pull request #185 from Cretezy/patch-1

Update Storage doc with basic metadata example
This commit is contained in:
Michael Diarmid 2017-06-21 19:24:04 +01:00 committed by GitHub
commit 1ea61bae1b
1 changed files with 12 additions and 0 deletions

View File

@ -19,6 +19,18 @@ firebase.storage()
});
```
### With metadata
```javascript
const metadata = {
contentType: 'image/jpeg'
}
firebase.storage()
.ref('/files/1234')
.putFile('/path/to/file/1234', metadata)
```
### Listen to upload state
```javascript