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
Uploading a .png image with .putData() creates an octet-stream object instead of a png object in storage emulator #4982
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
what sdk are you using? |
I use the flutter SDK https://github.com/firebase/flutterfire/tree/master/packages/firebase_storage |
I have a similar issue with Error is: When checking the type, it says |
I also have a similar issue with any file that is larger than ~200kB: |
We have the same issue when we do upload() via firebase admin to the storage emulator, since updating from 11.9.0 to 11.16.0 |
I've been having a similar issue as well in the emulator: when adding a file to the emulator through firebase admin's upload() the type is always application/octet-stream. |
Hi, I think the discussion here has been for two separate issues.
@LanderBeeuwsaert and @rulamon I think you are running into this second issue. Which admin sdk are you using? |
Hi @Yuangwang, I'm running 11.2.0 |
@LanderBeeuwsaert Sorry I think I was a bit unclear, which one of these from https://firebase.google.com/docs/admin/setup#prerequisites are you using? |
@Yuangwang ah apologies, the Node.js SDK, package firebase-admin, 11.2.0 |
Thanks! this will help in debugging |
Merged in fix for admin sdk issue #5229 it should be out with the new release. I also followed the steps to reproduce the original bug and it seems to be fixed so I'm closing this for now. |
[REQUIRED] Environment info
firebase-tools: 11.9.0
Platform: Windows 10
[REQUIRED] Steps to reproduce
.putData(data, SettableMetadata(contentType: 'image/png'));
[REQUIRED] Expected behavior
As in version 11.7.0, I expected to have a image/png object added to the storage emulator.
[REQUIRED] Actual behavior
Instead it adds a application/octet-stream.
The text was updated successfully, but these errors were encountered: