Roundcube Community Forum

Release Support => Pending Issues => Topic started by: jackeywong on May 14, 2014, 01:01:40 AM

Title: download attachment corrupted
Post by: jackeywong on May 14, 2014, 01:01:40 AM
Hi all,

While I uploaded a MS word file to an email then save it to draft, the attachment is corrupted when it was downloaded (same happened in 0.9.5 and 1.0.0). The original file (atth_original.docx) is good and also the file (atth_tmp_folder.docx) at server's tmp folder is also good (NOT corrupted) but the downloaded version is corrupted (atth_download_corrupt.docx).

Then I did an binary comparison for the corrupted vs non-corrupted file and I found there is an extra character return at the beginning of the corrupted file.

This same problem also happened in Excel (xls xlsx), Word (doc docx) and PPT/X file as well.

Could you please help to take a look, thanks!
Title: Re: download attachment corrupted
Post by: alec on May 14, 2014, 02:27:10 AM
Some of configuration files or some (most likely external) plugin files contain excessive new line character after ?> tag. Remove it.
Title: Re: download attachment corrupted
Post by: jackeywong on May 14, 2014, 03:22:50 AM
Thanks Alec! It works and there is an extra line at the end of google_analytics plugin ... doh!