ykach Posted April 1, 2011 Share Posted April 1, 2011 im using this code: PHP Code: [select] <?php set_time_limit(0); $file = 'test.mp3'; header('Content-Description: File Transfer'); header("Content-Disposition: attachment; filename=\"$file\""); header('Content-Type: audio-x/mp3'); header('Content-Transfer-Encoding: binary'); header('Content-Length: ' . filesize($file)); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Expires: 0'); readfile($file); ?> when downloading i cant see the progress bar. thanks. Link to comment https://forums.phpfreaks.com/topic/232396-unknown-time-remaining-force-download-read-6-times/ Share on other sites More sharing options...
j9sjam3 Posted April 1, 2011 Share Posted April 1, 2011 Has the $filename got the file extension? Link to comment https://forums.phpfreaks.com/topic/232396-unknown-time-remaining-force-download-read-6-times/#findComment-1195510 Share on other sites More sharing options...
ykach Posted April 1, 2011 Author Share Posted April 1, 2011 no $filename.. it's the complete code Link to comment https://forums.phpfreaks.com/topic/232396-unknown-time-remaining-force-download-read-6-times/#findComment-1195518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.