| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Retired 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2011 
				Location: PDXXX 
				
				
					Posts: 1,976
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				Anyone Know How to Force Download for Files on Amazon AWS S3
			 
			For instance .mp4 files just want to stream in my browser but I want them to automatically begin downloading when accessed. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Piper Pines  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | |
| 
			
			
			
			 Fakecoin Investor 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2012 
				Location: New Delhi, IN 
				
				
					Posts: 7,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	WARNING: Stay Away From Marlboroack aka  aka Brandon Ackerman 
			https://gfy.com/21169705-post8.html Donny Long is Felon, Stalker, Scammer & Coward http://www.ripoffreport.com/reports/...lon-int-761244  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2012 
				Location: NC 
				
				
					Posts: 7,683
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 its not the server , its your browser, which has associated .mp4 files with specific program. 
		
	
		
		
		
		
			if you are using firefox then go to about:preferences#applications there you can set what you want to when a mp4 is pushed from the server. hope this helps. if anyone have more info , feel free to correct me. now will you please hit the thanks button. 
				__________________ 
		
		
		
		
	
	SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean 
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2007 
				Location: Chatsworth, CA 
				
				
					Posts: 1,964
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Is it possible to set headers on the server? 
		
	
		
		
		
		
			
		
		
		
		
	
	Content-Type: application/octet-stream Content-Disposition: attachment;filename=\"blah.mp4\" You mention S3, I'm not sure about headers but from working with it in the past I remember it being a major pain in the ass and me not wanting anything to do with it.  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Retired 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2011 
				Location: PDXXX 
				
				
					Posts: 1,976
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 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 
		
	
		
		
		
		
			Quote: 
	
 
				__________________ 
		
		
		
		
	
	Piper Pines  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2007 
				Location: Chatsworth, CA 
				
				
					Posts: 1,964
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: May 2011 
				Location: Prnohrad 
				
				
					Posts: 422
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 you can edit http headers for files in your S3 browser, set content type to application/octet-stream (you should click apply changes too after you save changes and reload to be sure changes are done) 
		
	
		
		
		
		
			after that, when you copy/paste link in your browser, it should give you open/save dialogue in browser 
				__________________ 
		
		
		
		
	
	Promote LustReality.com - Exclusive VR content  / email me 
			*** Non-Exclusive content package on sale - contact me for info ***  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2012 
				Location: NC 
				
				
					Posts: 7,683
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 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 
				__________________ 
		
		
		
		
	
	SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean 
			 | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Sep 2005 
				Location: Springfield 
				
				
					Posts: 13,826
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 1. Simple HTML 5 solution 
		
	
		
		
		
		
			Code: 
	<a href="path_to_mp4_file.mp4" download="filename.mp4">Click here to download</a> 2. Much better, but bit complicated solution is to setup metadata on the object Code: 
	Content-Type: "application/octet-stream" Content-Disposition: "attachment" 
				__________________ 
		
		
		
		
	
	Make a bank with Chaturbate - the best selling webcam program        Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:  
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Retired 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2011 
				Location: PDXXX 
				
				
					Posts: 1,976
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Ok. So who is the guru here that I can pay to make this happen for me? 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Piper Pines  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |