I have a program that asks to rename the downloaded folder so I found the following code on the Internet:
Header ("Content-type:application/octet-stream");
Header ("Accept-ranges:bytes");
Header ("Content-type:application/force-download");
Header ("Content-disposition:inline;filename=". $filename);
Header ("Accept-length:". FileSize ($File));
@readfile ($File);//Read file to output cache
However, when downloading a file only shows how many open files ... The download progress is not displayed.
Reply to discussion (solution)
What do you mean by download progress?
is the download file when IE pop-up of the Download dialog box Ah no progress bar shows how much to open how many k a will be downloaded directly
May be the reason for the browser, you change Firefox browser try!
Try a different browser, with Firefox.
Why no one?
It's useless.
The browser cannot get the size of the file, it cannot calculate the scale and generate a progress bar.
</p> <p class= "Sougouanswer" > <p> agree to the seven floor view! Why isn't there a six floor? </p> <br/> Click here to support the 7 floor! <li ><i class= "Layui-icon" >& #xe63a;