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
Automatically set content-type based on file type #1184
Comments
We do this if you put Line 1547 in 51460e7
We didn't set that by default at the time to avoid making a breaking change (#133 (comment)). But, maybe we should now, @JustinBeckwith? |
Thanks guys. Great job on this library as-well. |
+1. We already do this in the go library. We can ship it along with the 5.0.0 release. |
Woo! @austtn any interest in sending a PR to make the change? We would want to just set the flag to "auto" if the user doesn't specify their own value for No worries if not :) |
I think this issue can be closed? |
While uploading a file to a Storage Bucket, the API automatically sets the content-type to
application/octet-stream
instead of setting it to what it should be. e.g. image/png etc.Describe the solution you'd like
Instead of having to manually set this metadata or it being set to
application/octet-stream
, let the API automatically set this based on the file extension.Describe alternatives you've considered
Check for each file type extension and then set the metadata manually.
The text was updated successfully, but these errors were encountered: