I am trying to get download url for images stored in Firebase Storage from my Firebase Fuctions Node API. After uploading the image successfully I stored the following in my database:
https://firebasestorage.googleapis.com/v0/b/myprojectname.appspot.com/o/${imageFileName}?alt=media
My files are stored in two different folders: profile and title
But when I paste the url from my database in browser it says:
{
"error": {
"code": 404,
"message": "Not Found. Could not get object",
"status": "GET_OBJECT"
}
}
I have allowed to read in Rules section
I tried to find download url from firebase storage it does not seem to have any field like that
I need to store the download url for the image in my database to serve json formatted data as REST api
NOTE: I have not setup any authentications yet.
WHAT I AM TRYING TO ACHIEVE: I am trying to build a blog where each user will have a profile and their collection of posts. All user/posts will be public views and only respected user can edit their content/profile. I am using Firebase Functions with Node as REST API to communicate with my Nuxt app. I need a way to add reference of the 'title image' in 'blog post' so that I can display it in my app.