Does hesk allow files to be displayed as pdf?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
elandau
Posts: 1
Joined: Wed Mar 12, 2014 1:27 am

Does hesk allow files to be displayed as pdf?

Post 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)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
shddcit
Posts: 46
Joined: Wed Mar 30, 2022 3:54 pm

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

Post 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.
Post Reply