How do I correct issues with “Content-Disposition: attachment” header defined on Amazon S3 accounts?

If you’re having issues with S3 storage forcing a download when viewing the URL, you can correct this issue very easily by specifying a custom content type. Simply append &content_type= to your S3 destination.

For example:
http://dbucketname.destination.s3.amazonaws.com/no_ext_file_with_cont_type?acl=public-read&content_type=video/mp4D

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.00 out of 5)
Loading...

edchelp