Page 1 of 1

Does hesk allow files to be displayed as pdf?

Posted: Wed Mar 12, 2014 1:34 am
by elandau
This is not an "is it possible"... I'm not looking for modify code...
I posted PDF files. When I view them, they are displayed in an ugly non-adobe-reader frame... I can't even download the pdf if I wanted to. Am I missing something? Some setting?

Thanks.

-Ed (newbie)

Re: Does hesk allow files to be displayed as pdf?

Posted: Wed Mar 12, 2014 12:59 pm
by Klemen
HESK doesn't allow opening attachments in browser, they should be forced to download for security reasons.

What is happening is probably due to modifications to the files. My guess is one of the HESK files has been modified and saved in UTF-8 WITH byte order mark which is causing problems. If you try uploading a JPG file it should also become unreadable if this is the case.

Uploading original, unmodified files (not even opened and saved) again should fix the issue if this is the case.

Re: Does hesk allow files to be displayed as pdf?

Posted: Sat Jan 27, 2024 4:08 pm
by shddcit
By default, each file is downloaded to Hesk.
You may have applied the code modification available here on the forum (using MIME view_attachment.php instead of download_attachment.php), but you did not apply it correctly. If the file is downloaded and after opening is displayed in an ugly frame - with Hesk there is no problem, problem with your software.