Roundcube Community Forum

 

download attachment corrupted

Started by jackeywong, May 14, 2014, 01:01:40 AM

Previous topic - Next topic

jackeywong

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!

alec

Some of configuration files or some (most likely external) plugin files contain excessive new line character after ?> tag. Remove it.

jackeywong

Thanks Alec! It works and there is an extra line at the end of google_analytics plugin ... doh!