How to correctly store and retrieve firebase storage URLs in firebase realtime database

hello, everyone. First of all, I know this was answered before more than once. I read the topics but still I couldn’t make it work. If someone can help me I will be very grateful.

These are my relevant blocks:
Saving the url in a variable:


Saving the URL in firebase realtime database:
salvarnorealtimedatabase
Before using join block it was not working, so I searched in forum and it didn’t work either. Now that is how the url is being stored in real time database:

“”\"\\\“https:\/\/firebasestorage.googleapis.com\/v0\/b\/yougas.appspot.com\/o\/cashback%2Fch%C3%A1cara%20flor%20de%20minas%2Ficone96px.png?alt=media&token=d2b5f942-4296-4fd2-9496-1749532f277f\\\”\"""""\"\\\“https:\/\/firebasestorage.googleapis.com\/v0\/b\/yougas.appspot.com\/o\/cashback%2Fch%C3%A1cara%20flor%20de%20minas%2Ficone96px.png?alt=media&token=d2b5f942-4296-4fd2-9496-1749532f277f\\\”\"""

This post was flagged by the community and is temporarily hidden.

1 Like

No personal info on the community. I removed it.

You have to upload the Download URL without any Join Block.

When getting the URL you have to replace the " and \ with nothing, to get the right URL.

I only started to use the join block after seeing some tutorials here at the community.

I am already using the replace block to be able to make it work:
image
But when I use do it block within downloadUrl in the upload success block, I get the URL correctly, without " or \

But even if I can make it work I would like to know how to store it correctly. I don’t understand why these characters appears in firebase realtimedatabase

That’s a fault of Kodular.
Maybe it’s an Error from the 3 Years old SDK or because Text Variables are handled differently.

You can’t change that, sadly.

1 Like

Otherwise use web component

2 Likes

Ah ok, thanks for telling me. Now I know it is not a mistake of mine.

Hum, thanks for the tip but for the moment not necessary. But it is good to know it is possible. Feel free to close this thread if you think it is necessary.