Script URL: HESK
Version of script: 3.2.5
Hosting company: My Server
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
HI. I am testing the HESK. Great sistem. But I have a issue with .JPG attacments. When a ticket is opened and user send a .JPG attachment I can not download the file. The file downloaded is corrupted. The file upload correct, because I can see the .JPG image direct in directory. But download by HESK is corrupte. Are you able to help me?
Thanks
Issue with .JPG attach download
Moderator: mkoch227
Re: Issue with .JPG attach download
This happens because you edited files and didn't save them correctly - one of them has hidden UTF-8 BOM somewhere.
Convert any Hesk file you opened and edited manually to the correct file format:
https://www.hesk.com/knowledgebase/index.php?article=87
Convert any Hesk file you opened and edited manually to the correct file format:
https://www.hesk.com/knowledgebase/index.php?article=87
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Issue with .JPG attach download
Hi,
Thanks for help. The tips worked. But I did not edited the files. I only downloaded the files from HESK like the user uploaded. Maybe it is HESK bug? Are some thing that I can do to solved it definitive?
Thank you very much. The HESK is great.
Thanks for help. The tips worked. But I did not edited the files. I only downloaded the files from HESK like the user uploaded. Maybe it is HESK bug? Are some thing that I can do to solved it definitive?
Thank you very much. The HESK is great.
Re: Issue with .JPG attach download
Klemem, If possible, make a test here: https://seusitio.com/documentos/index.php?a=add
You can open a ticket with .jpg attatched and then try to download the attachment.
Or, see the issue here: https://seusitio.com/documentos/ticket.php
2UE-13T-QQJ3
teste@teste.com
Sorry to take your time
You can open a ticket with .jpg attatched and then try to download the attachment.
Or, see the issue here: https://seusitio.com/documentos/ticket.php
2UE-13T-QQJ3
teste@teste.com
Sorry to take your time

Re: Issue with .JPG attach download
It's not a Hesk bug, it's an issue in your specific setup.
If you look at your JPEG file in a HEX editor it starts with 0xEF, 0xBB, 0xBF which is the UTF-8 BOM sequence of bytes. This is the reason the JPEG file does not open. Again, this happens when you edit a file in an editor that cannot correctly save UTF-8 files.
Maybe you edited your language file (text.php)? Use Notepad++ to convert it to the correct file format as explained in the article I linked to.
If you look at your JPEG file in a HEX editor it starts with 0xEF, 0xBB, 0xBF which is the UTF-8 BOM sequence of bytes. This is the reason the JPEG file does not open. Again, this happens when you edit a file in an editor that cannot correctly save UTF-8 files.
Maybe you edited your language file (text.php)? Use Notepad++ to convert it to the correct file format as explained in the article I linked to.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Issue with .JPG attach download
Great Guy!!!Klemen wrote: Thu Mar 17, 2022 6:47 am Maybe you edited your language file (text.php)? Use Notepad++ to convert it to the correct file format as explained in the article I linked to.

Yes, I edited text.php with windows notepade. Well, I edited again with notepad++ with converting and worked fine. Thank you!!