-
-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage): make downloadURL available for file metadata (firestore/firebase v5) #487
Comments
@nasimoyz Yup, no problem! Glad the issues were reported so quickly! As for getting The change should be easy enough to make, but it would be nice to capture this functionality with a unit test as well while we are at it. Thanks for reporting. |
Hey, I am carrying over from where we last left off from this thread: #480 I am using an async action. The following is the code: The screenshot that I posted in the previous comment was from console logging the file that was uploaded to firebase storage.
|
@pranavpanchal |
…ax for file upload
…pierce42 #487 fix(storage): fix downloadURL error in file upload metadata
* fix(storage): uploadFile gets downloadURL before writing metadata - #487, #488 * fix(storage): add unit tests for `fileMetadataFactory` (config level) and `metadataFactory` (option for uploadFile) to confirm downloadURL is available before writing metadata - #487, #488 * fix(storage): fix downloadURL error in file upload metadata - @jpierce42 * fix(auth): `LOGOUT` action dispatch only include preserve parameter if provided in settings (not when undefined)
This was released in v2.2.0-alpha.2 with associated unit tests that confirm |
* fix(storage): uploadFile gets downloadURL before writing metadata - #487, #488 * fix(storage): add unit tests for `fileMetadataFactory` (config level) and `metadataFactory` (option for uploadFile) to confirm downloadURL is available before writing metadata - #487, #488 * fix(storage): fix downloadURL error in file upload metadata - @jpierce42 * fix(auth): `LOGOUT` action dispatch only include preserve parameter if provided in settings (not when undefined) * fix(profile): profile update on login works with email login (used to require `createUser`) - #475 * feat(HOCs): optimize firestoreConnect unset / set listeners - @demoran23 * fix(HOCs): firestoreConnect no longer requires store.firebase (only attaches to props if available) * fix(auth): move detaching of profile listeners before `signOut` within `logout` method to fix `permission_denied` errors - #494 * fix(enhancer): support config already existing on store - [132 of redux-firestore](prescottprue/redux-firestore#132)
What is the current behavior?
Thanks for all your amazing work on this library and for quickly deploying the fix for file upload (for firebase v5)!
I was wondering about the best way to write the
downloadURL
to the File Metadata when working with the firebase v5 updates?Currently the File Metadata is written before the downloadURL is retrieved (with the downloadURL retrieval occurring in
uploadResultFromSnap
).I can write it to the File Metadata after the
firebase.uploadFile
promise resolves, only issue is then writing File Metadata will always incur a second network call.On dependencies:
The text was updated successfully, but these errors were encountered: