Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Storage gs url to http

I downloaded a Unity project that use images stored in Firebase server using the following link: https://zplayer360-86b30.firebaseapp.com

Now I want to reproduce this with my own file. I created a Firebase project using Firebase Console, uploaded manually the images, but now I click "copy folder url" button and it provide me only this link: gs://insidehome-29c9e.appspot.com/

I need a free HTTP public link. How can I obtain this?

like image 564
FabioDev Avatar asked Jan 20 '17 12:01

FabioDev


People also ask

How do I get Firebase Storage URL?

Firebase Download URLs The download token is created automatically whenever a file is uploaded to Cloud Storage for Firebase. It's a random UUIDv4, which makes the URL hard to guess. To retrieve a download URL, your client app needs to call the getDownloadUrl() method on the file reference.

What is GS in URL?

gs is the Internet country code top-level domain (ccTLD) for South Georgia and the South Sandwich Islands.

How can I get download URL from Firebase Storage after uploading?

If you already have download infrastructure based around URLs, or just want a URL to share, you can get the download URL for a file by calling the getDownloadUrl() method on a Cloud Storage reference.

Does Firebase Storage URL change?

android - Firebase storage URL keeps changing with new token - Stack Overflow. Collectives™ on Stack Overflow – Centralized & trusted content around the technologies you use the most.


1 Answers

When you upload a file to Firebase Storage, it automatically gets:

  • a Google Storage URL (starting with gs://), which you can use to access the file through the Firebase Storage SDK and the Google Storage API.
  • a download URL (starting with https://), which is a publicly-readable-but-non-guessable URL that you can use to download the URL with regular HTTP clients

What you're looking for is the second URL, which you can find in the Firebase Storage console when you select a file: enter image description here

At the bottom right you can see the download URLs for the file. One of these is auto-created when you upload the file, but you can create more of them or revoke existing ones.

I am not entirely sure what you mean by "free" URL. The link is publicly readable, but downloads will count against your Firebase Storage download quota of course.

like image 118
Frank van Puffelen Avatar answered Dec 18 '22 05:12

Frank van Puffelen