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. Quote 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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.