Amazon S3 not sending Content-Type header

amazon s3http-headersimages

I have an application that downloads content from various sources. It relies on the "Content-Type" header being set on images. The majority of web-servers do this correctly but it appears Amazon S3 server is not setting the Content-Type.

I assume Amazon servers are configured correctly so what could be the problem? Are these images not uploaded correctly? Or should I not be relying on content type being set?

Example

Thanks

Best Answer

Files uploaded to S3 need to have informed the Content-Type header. There isn't a default content-type definition like the ones you can do on a "normal" content web server (which wouldn't be that bad idea!) per folder.