hansemannn/titanium-firebase-storage

Cant get upload to work

Opened this issue · 4 comments

Hi,

Im trying to use this module, but i cant get it to work. Im getting undefined on the upload function (FirebaseStorage.upload)

Hi there! All main operations (upload, download, delete, etc.) are performed on the Reference proxy. So you first need to get a reference using FirebaseStorage.referenceForPath(...) and then call upload on that one 🙂

Ah that makes sense! Thanks for the quick reply. What should be used as the path? Is it the bucket url or subfolder?

It's the folder

Ah that makes sense! Thanks for the quick reply. What should be used as the path? Is it the bucket url or subfolder?

Hello @Didrikt did you make it work? If so, can you please share a code how to get reference and make upload? Thank you