[FIREBASE_STORAGE] mime/contentType undefined after upploading files to firebase storage if settableMetadata is NOT null #12801
Labels
Needs Attention
This issue needs maintainer attention.
platform: android
Issues / PRs which are specifically for Android.
plugin: storage
resolution: fixed
A fix has been merged or is pending merge from a PR.
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Storage
Which platforms are affected?
Android
Description
#12363 has been partially fixed :
When you
putFile
and SettableMetadata is null, mime type is now correctly inferred from file extension in storage firebase console, since firebase_storage package version 11.7.3BUT if you provide any
customMetadata
to SettableMetadata (for examplecustomMetadata: {'picked-file-path': file.path}
), SettableMetadata is not null anymore and mime type is not inferred from file extension in firebase consoleReproducing the issue
Use dart example code provided for the firebase_storage package in pub.dev with a non null SettableMetadata, to reproduce the issue :
If you do not provide any SettableMetadata, the mime type is correctly inferred :
Firebase Core version
2.31.0
Flutter Version
3.22
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: