firebase / firebase/firebase-android-sdk
Firebase Storage. Generate on the client side a Download URL before uploading an item.
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 710
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 34
Description
## 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.
Contributor guide
Assessment
This issue has not been assessed yet.