No progress bar in IE8 while executing the download using PHP

Posted by user292918 on Stack Overflow See other posts from Stack Overflow or by user292918
Published on 2010-03-13T11:29:02Z Indexed on 2010/03/13 11:35 UTC
Read the original article Hit count: 219

I am giving downloads to user using the PHP code below but when user downloading they are not able to see the progressbar in IE8 when clicked on save button. Please solve this. Thanks in advance.

header('Content-Description: Songsbin.com - Downlaod');
header('Content-type: audio/mpeg');
header('Content-Disposition: attachment; filename='.$filename1);
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: '.filesize($file));
ob_clean();
flush();
readfile($file);

© Stack Overflow or respective owner

Related posts about php

Related posts about http