I am currently making an app in which the user uploads an image and some data so that it can later be seen by the other users.
I am using Firebase in order to store this data. I have been able to upload the image to Firebase Storage via Firebase Storage Upload Files, but I have no idea how to generate an image URL for every file and then upload said URL to my Firestore Database.
I tried using the Firebase Storage get download URL flow function but even though the download URL is generated I have been unable to access it, store it in a variable to send it to my Database; even if I could, it is my understanding that this download URL is temporary, meaning that I have to find a way to generate a permanent URL.
It would be greatly appreciated if anyone could explain to me how to generate an URL each time the user uploads an image and then send said URL to my Database.
in order to upload my files to Firebase Storage first I had to link my DB to AppGyver as in Google Firebase connector - Composer. It was quite the tedious process, but now that it’s done and I have my problem figured out, it works like a charm!
As for how I exactly uploaded the file to Storage, I came up with the following logic:
I have since been able to solve the problem. It was surprisingly simple!
When you upload an image file to Firebase Storage via Firebase Storage upload files, you can then access the Database and if you click said file, you will be able to see a field called NAME, which includes a hyperlink for your image, as in:
Hey I am trying to retrieve the image URL from firebase storage to firestore database. As mentioned above I have understood the formula. But what would be the flow function after “Firebase storage upload files”? And where would this formula come into picture?