Hello all,
I have a bunch of videos stored on my Amazon S3 storage. I'm working on creating a PHP script, very similar to the one here, where users can download the videos to their hard drive.
I'd like to use something like this:
<?php
$file_name = $_GET['file'];
$file_url = 'http://www.myamazons3.com/' . $file_name;
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"".$file_name."\"");
readfile($file_url);
exit;
However, I am under the impression that this increases the bandwidth because the video will be coming through my server.
Any ideas on how I might be able to force the download of these videos, while avoiding reading it first through my own server?
Many thanks!