Jump to content

Convert filenames on Ticket attachments


Recommended Posts

Hello, 

This issue is on WHMCS from the start and now I'm trying to find a solution.

- When a client posts an attachments with a non-Latin filename (in our case greek letters), WHMCS trims the non-latin file name and generates the rest and stores the attachment to it's system.
I asked on WHMCS Support Chat for a hook action that I can convert the attachments filename to latin but the answer is that there is no related action hook to interfere with the attachment process. 

Anyone has implemented anything related for the ticket attachments or a suggestion what to check for WHMCS  ?

Thank you in advance.

Link to comment
Share on other sites

You can't. According to WHMCS the problem is Greek alphabet. People should stop using it.

Joking apart, I can think of several solutions. I refuse to share details (personal reasons) however I can give you few hints.

Solution 1 (recommended but super boring):

Solution 2 (not recommended, not safe and still pretty boring):

Solution 3 (not recommended and boring):

Good luck.

Edited by Kian
Link to comment
Share on other sites

4 hours ago, pRieStaKos said:

This issue is on WHMCS from the start and now I'm trying to find a solution.

patience of a saint! 😇

4 hours ago, pRieStaKos said:

I asked on WHMCS Support Chat for a hook action that I can convert the attachments filename to latin but the answer is that there is no related action hook to interfere with the attachment process. 

AFAIK, the filename is sanitised before upload - and once sanitised, the old unsanitised name is forever lost.

5 hours ago, pRieStaKos said:

Anyone has implemented anything related for the ticket attachments or a suggestion what to check for WHMCS  ?

you might need to look at renaming them on the fly yourself before submission (assuming that once in the system, the original filenames are dumped).

frankly, i'd defer to Kian on this with his suggestions.... and his suspicion about the solution WHMCS would prefer. 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated