View Single Post
Old 06-25-2015, 04:05 AM  
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
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>
This will force the download just as the user has right clicked and clicked save.


2. Much better, but bit complicated solution is to setup metadata on the object

Code:
Content-Type: "application/octet-stream"
Content-Disposition: "attachment"
You can do this trough S3 console...
__________________
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote