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.
A:
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.
p7r
2010-07-09 16:56:27
Bucket Explorer isn't a solution. I am uploading with our own POST form. Can you specify mime-types in the direct upload form with maybe a hidden field?
2010-07-09 17:27:49
Ah, I thought you were expecting S3 to detect the MIME type and do something for you. I guess you mean you're using something like this:http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1434Note, you can specify the Content-Type as part of that form (the documentation is all there). Hope that helps.
p7r
2010-07-10 23:21:02