When attaching files to tickets, customers have complained that they cannot view some files.
After some investigation, we've found that files sent through email are fine and that only certain file types are affected.
The version stored on the server is fine so something is going wrong with looking at them on the webaccess with attachments.php. I have checked this and the file is up to date.
The file types we have issues with are gif, png, jpg, doc, docx, and zip. txt and pdf are fine. Docx is fine if windows runs recovery on it.
Below is a diff output of two jpg files- one the original, the other downloaded from the osticket webaccess.
diff -a fine corrupted
0a1,2
>
>
63c65 ¡äÛ¸g@ÿÙ
\ No newline at end of file
--- ¡äÛ¸g@
\ No newline at end of file
I have not found any records of people having similar problems but perhaps I used the wrong search terms. Is it possible that some setting on our server is causing these problems? Our version of PHP is 5.2.17
Any suggestions would be greatly appreciated.