Jump to content

Support Ticket Attachments


Recommended Posts

I believe I found a bug to bring to everyone's attention.

 

If you are in WHMCS and reply to a support ticket and attachment a file that includes 2 "." (periods) then the second period and everything after it is stripped out.

 

For example, I reply to a ticket and attach "image.2.jpg" then the file that is actually sent is "image.2". To workaround the issue you would need to rename the file to "image-2.jpg" then add to the ticket.

 

jdwalte3

Link to comment
Share on other sites

Confirmed here as well. I'm guessing it has something to do with how WHMCS is parsing the file extensions ti determine the content type before sending the file to the browser. The most fool proof scheme of determining file extensions I've found is this:

 

$filename = 'test.txt.zip';
$fnparts = explode('.', $filename);
$file_extension = array_pop($fnparts); 

echo $file_extension;

// Will output "zip"

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