Download mp4 with header
Try header("Content-Type: video/mp4"); header("Content-Length: ".filesize("path/to/mp4")); readfile("path/to/mp4");. inet-operaciya.ezua.com › forcing-file-downloads-in-php. I've seen a number of methods to force file downloads using the PHP header() function which, essentially, sends a raw HTTP header to the browser. As a developer, being able to force the download of any type of file is extremely useful. header("Content-Disposition: attachment. If you upload and directly link inet-operaciya.ezua.com4/mov/avi/mkv/mpg/etc files in . File Transfer'); header('Content-Type: application/force-download');. It#;s quite a common scenario with the web to want to force a file to download, instead of allowing the browser to open it. This can apply to.