mardi 3 septembre 2019

How to use firebase/google storage properly on web

After trying to use firebase storage in my web project, I've encountered this issue: TypeError: firebase.storage is not a function

The most popular answer says that firebase storage is deprecated and we should use google-cloud/storage package instead.

However, from looking at the answers and reading in their official docs It seems that the client libraries are only for server-side code.

I know for example that it is possible to use directly the firebase storage in Swift, but I get an error when trying to use it on the web.

I don't get any error when using the firebase-admin npm package on my server side.

Do I miss anything basic? How should I upload and download files from google storage on the browser?




Aucun commentaire:

Enregistrer un commentaire