0

So, I just want to swap some things in the download url to make users be able to search for files in the storage. it's just that I don't want to swap the long code in the end, because then users will have to use that super long code. I have to use the url to access the files.

https://firebasestorage.googleapis.com/v0/b/socialmedia- 1df9e.appspot.com/o/images%2Flego?alt=media&token=4cc05dec-8dda-4f46-a8a7- eb1bf916c512 ⇈ ⇈ swap this Not this 

1 Answer 1

2

It's not supported to construct your own download URLs. You should be using the Firebase SDK to generate download URLs that are special for each file you want to download.

Sign up to request clarification or add additional context in comments.

5 Comments

How do I use the firebase sdk to generate special urls?
What does a url like that look like?
If you're using the Android SDK, you buidld a reference to the file in storage that you want to download, then call getDownloadUrl to get a Task that resolves to the string of the URL. stackoverflow.com/questions/37374868/…
Yeah, I know that. But how can I change the look/parts/construction of the url?
As I said, it's not supported to build your own URLs. You should call the API, and assume that the URL cannot be changed or reconstructed.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.