Skip to content
Advertisement

Tag: firebase-storage

return a string from a function in reactjs

I’m trying to return a string from a function this is the function : But it returned undefined, although when I log it to the console it gives the value that I expect. I thought about creating a state, but I can’t because I’m going to call this function several times and I don’t think I can make a state

When accessing files in Firebase Cloud Storage from a client, is it more cost effective to fetch a file using a downloadURL vs getBlob?

In my web application which uses Firebase v9: Specific to downloading files from a firebase cloud storage bucket client side, I am concerned about cost and quotas. Which method is the most cost effective? use getBlob() to download a file. use getDownloadURL() to obtain a download url, store it in the DB and subsequently fetch the file. Looking at the

Firebase Storage in Web Application: storage.useEmulator is not a function

In my local web application development environment the web application is accessing the Firestore emulator correctly, but not the Storage emulator. Instead it accesses the production storage. I load the module from http://localhost:5000/__/firebase/8.3.0/firebase-storage.js I have tried this from https://firebase.google.com/docs/emulator-suite/connect_storage#web-v8: But the useEmulator function does not exist. How can this be? Answer The function storage.useEmulator was introduced in a later version

Firestorage has different behavior when hardcode

I don’t know what happened with my code. But everytime i used this code is working But when i switched to urlPathThumbs it will become error 404. Error said like so Firebase Storage: Object ‘courses/m9APF8TEUnfS6IQew591sl4kphH2/thumbs/Rectangle 68 (1)_200x200.png’ does not exist. (storage/object-not-found) however they both are same pattern. This is how variable urlPathThumbs created in previous snippet code this file is

Advertisement