Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

php - Size not showing while downloading files from my website

I am running a blog on WordPress. For downloading some files from my blog, first I upload the files to my server in the folder /downloads. Then I link the file in my post. When a user clicks the download button, the download starts. But the problem is it doesn't show how much is the file size. It only shows how much is downloaded. I have provided a link below to check.

The site is in Wordpress. Hosted on Godaddy.

Sample post (pls check the download link) : http://www.tekyfox.com/android/bug-fixed-moto-g-boot-animation-change-updating/

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Thank you a ton Rich. It worked for me! I followed the link you provided: "File Downloads from Apache Server Doesn't Show Total". The first answer given there says to add the following line in .htaccess file:

SetEnv no-gzip dont-vary

That's it! It did the trick. Thank you very much again. It was a huge headache since last 4-5 days.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...