[FIREBASE_STORAGE]: Wrong json key for customMetadata #12711
Labels
Needs Attention
This issue needs maintainer attention.
platform: windows
Issues / PRs which are specifically for Windows.
plugin: storage
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Storage
Which platforms are affected?
Windows
Description
I'm having an issue retrieving metadata from a file on Windows. The file has metadata, but when I fetch this data, the 'customMetadata' attribute comes back null. Inspecting the returned object, it's possible to see that it exists but under a different key in the mapping: 'metadata'.
I also noticed that the custom metadata I send when uploading a file isn't being sent. It might be related to this same issue.
I'm using firebase_storage version 11.7.4."
Reproducing the issue
Using the firebase_storage plugin version 11.7.4 on Windows:
Retrieve the metadata of a file that has custom metadata.
The customMetadata object comes back null, but inspecting the FullMetadata object, it exists under the key "metadata".
Firebase Core version
2.30.1
Flutter Version
3.19.6
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: