Merge pull request #185 from Cretezy/patch-1
Update Storage doc with basic metadata example
This commit is contained in:
commit
1ea61bae1b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue