File downloads broken in 5.5
Permalink
Hey,
File downloads do not work in 5.5. This problem exists on four different websites, some new with 5.5 and some upgraded from an earlier version. These are on CentOS, Ubuntu and MacOS X servers.
What happens is, you click to download, and the download works for a while, and then stalls out. Then, the download completes and saves a truncated version of the file. It happens on both small PDF files and large image files too. It happens through the file manager and through a link added in the content editor.
The only way to download a file is to view the file properties and hard link the file with the URL. They download fine when done that way.
The download multiple files feature also fails as this person posted about here:http://www.concrete5.org/community/forums/usage/canand039t-download...
Here is a link to see the problem (click on the helicopter image to download a PDF) :http://vertical-aviation.com/about-us/reviews/...
Any help would be appreciated!
File downloads do not work in 5.5. This problem exists on four different websites, some new with 5.5 and some upgraded from an earlier version. These are on CentOS, Ubuntu and MacOS X servers.
What happens is, you click to download, and the download works for a while, and then stalls out. Then, the download completes and saves a truncated version of the file. It happens on both small PDF files and large image files too. It happens through the file manager and through a link added in the content editor.
The only way to download a file is to view the file properties and hard link the file with the URL. They download fine when done that way.
The download multiple files feature also fails as this person posted about here:http://www.concrete5.org/community/forums/usage/canand039t-download...
Here is a link to see the problem (click on the helicopter image to download a PDF) :http://vertical-aviation.com/about-us/reviews/...
Any help would be appreciated!
Thanks for your help with it. I finally figured out the issue. My htaccess files were adding in gzip compression (below), which worked previously, but does not work with 5.x versions.
Do the new versions of C5 already have gzip it in use or something?
Do the new versions of C5 already have gzip it in use or something?
php_value output_buffering On php_value output_handler ob_gzhandler <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript text/js <IfModule mod_headers.c> Header append Vary User-Agent </IfModule> </IfModule> <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl|ctp)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.*
Viewing 15 lines of 25 lines. View entire code block.
I tried to reproduce the problem. I tried it by uploading a pdf file that was more than twice the MBs your pdf file was (note that I only got 1.3MB from your download, and it did not open - message says corrupted or unrecognized format, but we know that is because it was incomplete).
First, I uploaded a PDF file that was 3 to 4 MB, and made it a link on a C5 page, and then clicked on it from another browser (IE) to save, and it downloaded fast and clean. Note that the C5 version I tested with is a 5.5.1. All the Concrete 5 installs at WHW1.com (meaning Web Hosting With $1) are 5.5.1.
In summary, the problem was not reproducible with a IE browser, and a C5 version 5.5.1 on a WHW1 server.