Skip to content

Commit 8552fec

Browse files
authored
Merge pull request #36 from puhastudio/docs-uploadfile
Correct docs for uploadFile
2 parents d91ce73 + 48c59b4 commit 8552fec

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
@@ -508,7 +508,7 @@ To upload camera photos, we can combine this method with the `react-native-camer
508508
```javascript
509509
this.camera.capture()
510510
.then(({path}) => {
511-
firestack.uploadFile(`photos/${auth.user.uid}/${filename}`, path, {
511+
firestack.storage.uploadFile(`photos/${auth.user.uid}/${filename}`, path, {
512512
contentType: 'image/jpeg',
513513
contentEncoding: 'base64',
514514
})
@@ -545,7 +545,7 @@ takePicture() {
545545
this.camera.capture()
546546
.then(({path}) => {
547547
const filename = 'photo.jpg'
548-
firestack.uploadFile(`photos/${filename}`, path, {
548+
firestack.storage.uploadFile(`photos/${filename}`, path, {
549549
contentType: 'image/jpeg',
550550
contentEncoding: 'base64',
551551
}, (evt) => {

0 commit comments

Comments
 (0)