do not open attachments

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
vladsn07
Posts: 12
Joined: Wed Oct 16, 2013 12:33 pm

do not open attachments

Post by vladsn07 »

Script URL:
Version of script: 2.5.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
When you open a file attached to the knowledge base *.exe and *.png files do not open before all opened.
viewtopic.php?f=13&t=2604 - does not help
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: do not open attachments

Post by Klemen »

That's probably a setting on the server (or your browser) regarding supported content types.

Can you provide a link with example?
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
vladsn07
Posts: 12
Joined: Wed Oct 16, 2013 12:33 pm

Re: do not open attachments

Post by vladsn07 »

Unfortunately I loklany ubuntu server. More precisely I initially they worked, and then perstal open exe files, and png. jpg opens. The rest did not check. I can make a screenshot
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: do not open attachments

Post by Klemen »

Yes, you can make a screenshot of what happens as I do not fully understand the problem.
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
vladsn07
Posts: 12
Joined: Wed Oct 16, 2013 12:33 pm

Re: do not open attachments

Post by vladsn07 »

I switched the language helpdesk in English, then it worked. Russian use - does not work
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: do not open attachments

Post by Klemen »

This means the problem is in your Russian text.php file - there is probably a hidden UTF-8 BOM (byte order mark) at the beginning of the file.

I don't know what editor you use, but see if it has option to save in UTF-8 without BOM.

If not, use a more powerful editor, such as this one:
http://notepad-plus-plus.org/

You can manually confirm the issue and remove the extra bytes also by following these steps:
viewtopic.php?t=2713
Username: php
Password: php

Or you can try a tool to detect and remove BOM:
https://github.com/emrahgunduz/BomCleaner
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
vladsn07
Posts: 12
Joined: Wed Oct 16, 2013 12:33 pm

Re: do not open attachments

Post by vladsn07 »

Thank you. was really a problem in the coding. The encoded files are encoded in UTF 8 without the BOM and it worked.
Post Reply