jdwalte3 Posted March 7, 2010 Share Posted March 7, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted March 11, 2010 Share Posted March 11, 2010 Agreed, this is annoying. I've noticed it a few times when sending clients FTP logs. 0 Quote Link to comment Share on other sites More sharing options...
rmccny Posted March 14, 2010 Share Posted March 14, 2010 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" 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.