Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

set default content-type for uploads #1846

Closed

Conversation

davebiffuk
Copy link

If the browser can't figure out a content-type, set a generic one, to avoid policy errors on missing content-type.

Brief description of the changes

This fixes #1841

What browsers and operating systems have you tested these changes on?

Tested with Chrome 58 on Linux and Ceph/radosgw/s3 10.2.3

Have you written unit tests? If not, explain why.

Don't know how :( but willing to learn...

If the browser can't figure out a content-type, set
a generic one, to avoid policy errors on missing content-type.
@rnicholus
Copy link
Member

Really having trouble believing that this is necessary. The S3 upload code has been around for years, and this is the first time the issue has surfaced.

@davebiffuk
Copy link
Author

Thanks for the feedback. I've confirmed that this change isn't necessary with AWS S3. I'll pursue it with the Ceph/radosgw people. Would you be amenable to carrying this as a disabled-by-default feature, e.g. "enable_sending_default_content_type"?

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

Successfully merging this pull request may close these issues.

2 participants