You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Is your feature request related to a problem? Please describe.
I'd like to get the URL of an image upon saving it to Storage, so I can save it in Firestore right away and display the image later. Right now there is getSignedUrl() and metadata.mediaLink (for downloading) but apparently we can view images with the following URLs:
But there is no property or method that returns these URLs. It seems like people are just stitching them together in the understanding that this is a hack that might break in the future if the actual URL format happens to change.
Describe the solution you'd like
I'd like a property or method to exist on a bucket file instance that would return either of the above mentioned URLs depending on whether the file is public or not, or whether an access token exists in the metadata.
Describe alternatives you've considered
Stitching the URL together by myself.
Is your feature request related to a problem? Please describe.
I'd like to get the URL of an image upon saving it to Storage, so I can save it in Firestore right away and display the image later. Right now there is
getSignedUrl()andmetadata.mediaLink(for downloading) but apparently we can view images with the following URLs:Public files
Files viewable with access key
But there is no property or method that returns these URLs. It seems like people are just stitching them together in the understanding that this is a hack that might break in the future if the actual URL format happens to change.
Describe the solution you'd like
I'd like a property or method to exist on a bucket file instance that would return either of the above mentioned URLs depending on whether the file is public or not, or whether an access token exists in the metadata.
Describe alternatives you've considered
Stitching the URL together by myself.