Jump to content

How to allow large file uploads in support tickets?


BryanB

Recommended Posts

Is there away to allow large file uploads in support tickets? Sometimes we have problems with high-res .jpegs timing out and the support ticket submission failing. It also seems to be a problem even when piping in emails to the support address... although these 2 issues may be unrelated.

 

I'm wondering if there is a way to extend the time-out period. Either in WHMCS or my with my server? I'm hosted with hostgator but was wondering how those file sending websites like YouSendit.com or transferbigfiles.com manage to send such large files up to 1GB+

Link to comment
Share on other sites

  • 1 month later...

You should check your PHP configuration in php.ini..

 

For example, to be able to upload up to 100M

 

upload_max_filesize = 100M
post_max_size = 110M

It's always good to set post_max_size a little higher than the upload_max_filesize as that settings includes the size of the entire POST transaction.

Link to comment
Share on other sites

Good advice Sparky, although max_execution_time should not affect uploads since PHP doesn't get called until the file is uploaded (at least in theory). However that brings me to think of another setting that may potentially have to be looked at if large uploads are still failing....

 

If you are running any kind of FastCGI implementation chances are it has it's own timeout setting in which the FastCGI process will be killed. Again, this shouldn't be an issue since PHP should not be called until the web server has received the file, but then again, you never know.

 

Good luck!

Link to comment
Share on other sites

On second thought by changing the time limit in whmcs then all pages in whmcs would have the same limit. Probably would be best to use this in your php upload script instead so that it will only affect your upload script.

@set_time_limit(600);

This site is a little old but should help out a little more

http://www.radinks.com/upload/config.php

Link to comment
Share on other sites

  • 3 weeks later...

Thanks guys, I'm still having a problem though. It looks like the max file size setting worked, I changed it to 100M but I'm still getting support tickets where clients are uploading images and the images are not coming through just the message in the ticket.

 

Php info: http://virtualstagingsolutions.com/phpinfo.php

 

I added

$overidephptimelimit=600;
to the config file but still no luck. I also tested uploading a 20MB file in a ticket and it kept failing.

 

Any ideas?

Edited by BryanB
Link to comment
Share on other sites

Unfortunately, max_execution_time does not affect uploads and changing $overidephptimelimit or set_time_limit() will have no effect. The last setting in PHP that you want to look at is max_input_time which should be set to 600-900 seconds (10-15 minutes).

 

Also, are you running CGI/FastCGI? If so you should look into timeout settings there. For example, Apache has a request timeout limit that could be affecting you and most FastCGI implementation have a timeout setting as does IIS on Windows. I'm willing to bet you're hitting one of those limits.

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