2
0
mirror of synced 2025-01-11 14:44:12 +00:00

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

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