Downloading files as attachment filesize incorrect
问题 I'm trying to force a link to download a file as an attachment. This is stuff I have done before but something is going wrong and I'm not sure what it is. The file types I am trying to send as attachments are all mp4 files. Here is what I am doing: <?php if(isset($_GET['file'])) { $file_path = dirname(__FILE__) . "/videos/$_GET[file]"; if(file_exists($file_path)) { $file_url = "/videos/$_GET[file]"; header ("Content-type: video/mp4"); header("Content-Transfer-Encoding: binary"); header(