Skip to content

Firebase Storage. Generate on the client side a Download URL before uploading an item. #3514

Open
@FranRiadigos

Description

@FranRiadigos

What feature would you like to see?

Ability to generate, on the client side, a Download URL before running the upload process.
So that we can avoid the costs of unnecessary uploads if any error or exception happens.

How would you use it?

Some of my documents in Firestore depend on a link of an uploaded image from Storage.
To add the image URL into a document field I first need to upload the file.

However, if for any reason, an error, exception, security rule rejection, etc. occurs, I have to delete the uploaded file since it's no longer relevant, as the user might decide to use another image.

This incurs in extra costs I think can be easily avoided by having the final generated URL with its token.
Similar to how Firebase provides a reference id locally on the client side.

If there is already a better approach to tackle this use case, please let me know.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions