hansemannn / titanium-firebase-storage

Use the Firebase Storage SDK in the Titanium SDK 🚀
Other
5 stars 3 forks source link

Cant get upload to work #2

Open Didrikt opened 1 year ago

Didrikt commented 1 year ago

Hi,

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

hansemannn commented 1 year ago

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 🙂

Didrikt commented 1 year ago

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

hansemannn commented 1 year ago

It's the folder

Max87ZA commented 8 months ago

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