Theo Crowley
Theo Crowley

Reputation: 123

Can't access uploaded files through Firebase storage on web

I'm trying to access/download files that have been uploaded to Firebase storage but I can't figure out how to. Some of the files have a create new access token button under the storage location which gives me a link to the file on the web. Unfortunately, this is only a few files and seems to only be ones uploaded from localhost?

I can't find any reference to this on the documentation, this should be achievable through the Firebase dashboard?

I've tried setting the access rules to allow reads in all cases which hasn't helped.

Thanks

Upvotes: 0

Views: 512

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317758

In general, you're supposed to use getDownloadURL(), as shown in the documentation, from within your web or mobile app to generate a download URL for use within your app. Typically, the console is only used to revoke the tokens that enable to download of each file through that URL.

If that's not specifically what you're trying to do, perhaps you want to read up on other was to make data public in Cloud Storage. The Firebase console is not really the best mechanism to manage downloadable content.

Upvotes: 0

Related Questions