Attachment extensions

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Noke101
Posts: 41
Joined: Mon Aug 09, 2021 11:21 am

Attachment extensions

Post by Noke101 »

Script URL:
Version of script:
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:

Hi there,

I started the implementation of digital signatures in my enterprise, files signed with an dig.signature change their extension.
For example, if I signed a .pdf file, then after signing it will change the format to .pdf.sig

I can't attach such file to hesk.
I add the format to the allowed ones, and after saving the HESK, it changes it to .pdfsig, removing the dot between.

Before saving

Code: Select all

.jpg,.jpeg,.png,.doc,.docx,.xls,.xlsx,.txt,.pdf,.csv, .pdf.sig
After saving

Code: Select all

.jpg,.jpeg,.png,.doc,.docx,.xls,.xlsx,.txt,.pdf,.csv,.pdfsig
What can be done about it?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Attachment extensions

Post by Klemen »

You should just add the last extension, so

Code: Select all

.sig
Example:

Code: Select all

.jpg,.jpeg,.png,.doc,.docx,.xls,.xlsx,.txt,.pdf,.csv,.sig
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
Noke101
Posts: 41
Joined: Mon Aug 09, 2021 11:21 am

Re: Attachment extensions

Post by Noke101 »

Klemen wrote: Fri Oct 21, 2022 7:03 am You should just add the last extension, so

Code: Select all

.sig
Example:

Code: Select all

.jpg,.jpeg,.png,.doc,.docx,.xls,.xlsx,.txt,.pdf,.csv,.sig
Oh my god why didn't I think of doing that.
Thanks!)
Post Reply