Skip to content
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

support storing real content type #61

Open
guruofgentoo opened this issue Aug 31, 2022 · 0 comments
Open

support storing real content type #61

guruofgentoo opened this issue Aug 31, 2022 · 0 comments

Comments

@guruofgentoo
Copy link
Member

For S3, all objects uploaded via a signed link get the octet-stream content type. That's stored in S3 along with the object as metadata, and gets passed back when the object is requested.

In most cases, that works just fine. But: when an image from S3 is on a page, and the user opens the image in a new tab, the browser will look at that content type and automatically download the file (rather than displaying the image in a tab).

As of 0.5.11, we can inject a content type when getting a download link to workaround this issue. But, we really should allow an app to provide a correct content type at upload time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant