Author Topic: download attachment corrupted  (Read 3188 times)

Offline jackeywong

  • Newbie
  • *
  • Posts: 2
download attachment corrupted
« 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!

Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: download attachment corrupted
« Reply #1 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.

Offline jackeywong

  • Newbie
  • *
  • Posts: 2
Re: download attachment corrupted
« Reply #2 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!