Skip to content

Commit 48c59b4

Browse files
committed
Correct uploadFile synthax in docs
1 parent 5958b8c commit 48c59b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ To upload camera photos, we can combine this method with the `react-native-camer
510510
```javascript
511511
this.camera.capture()
512512
.then(({path}) => {
513-
firestack.uploadFile(`photos/${auth.user.uid}/${filename}`, path, {
513+
firestack.storage.uploadFile(`photos/${auth.user.uid}/${filename}`, path, {
514514
contentType: 'image/jpeg',
515515
contentEncoding: 'base64',
516516
})
@@ -547,7 +547,7 @@ takePicture() {
547547
this.camera.capture()
548548
.then(({path}) => {
549549
const filename = 'photo.jpg'
550-
firestack.uploadFile(`photos/${filename}`, path, {
550+
firestack.storage.uploadFile(`photos/${filename}`, path, {
551551
contentType: 'image/jpeg',
552552
contentEncoding: 'base64',
553553
}, (evt) => {

0 commit comments

Comments
 (0)