View Single Post
Old 06-25-2015, 12:14 AM  
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
Quote:
Originally Posted by srockhard View Post
Thank you but this is not what I'm looking for. I don't care what my own browser is doing I am more concerned with user experience on my site. I found this article but I don't really understand what they are doing ... Amazon AWS S3 to Force Download Mp3 File instead of Stream It - Stack Overflow
i almost f orgot content disposition ,

you need to set the header.

depends on how are you pushing the file to users. if you are using php to download the file then you need to set these headers in php where you are allowing to download file

Content-disposition: attachment; filename=song.mp3

but if you are using web server then you need to add the\is header to web server either via rule matching or extension matching or location matching something like that , i have recently implemented something similar with nginx.,


hope this helps.

google "content disposition amazon s3"
maybe try this .,

php - How to set Content-Disposition Headers as a default on Amazon S3 Bucket - Stack Overflow
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote