$url = $_GET['fileurl'];
$path_parts = pathinfo($url);
$ext = $path_parts['extension'];
$filename = $path_parts['filename'];
header("Content-type: video/$ext");
header("Content-Disposition: attachment; filename=$filename.mp4");
echo file_get_contents($url);
When the download starts, it does not show the user actual size of the file.. File Size shows only Unknown. So what should I do right now?