Reputation: 39
Is there a way to have S3 automatically set a mime-type depending on extension? I don't want my uploads to force download if I don't specify a mime-type but rather have the browser decide.
Upvotes: 3
Views: 5961
Reputation: 444
S3 won't do this for you, but most tools and APIs will allow you to specify the MIME type when uploading. Depending on the context you're working with, you should be able to do this relatively easily yourself, and some tools (e.g. Bucket Explorer) will allow you to do mass-assignment of MIME types based on file extension.
Upvotes: 1