PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Large File Upload Problem

  1. Hello. I have Gravity Forms running on a VPS Hosting account. I have a form that needs to allow file uploads of about 50mb. I know that GF just uses the normal PHP Upload functions and I have adjusted both my php.ini and wordpress config files accordingly. I have upped all limits related to file size to 128M and also increased all timeouts to 120 seconds.

    When a file over about 20M is uploaded to the form, it says "Uploading" in the status bar until it hits 100% then it just hangs. Nothing is ever recorded in GF. The form is located here: http://posttelegraph.com/designexcellence/ I'm happy to send you an admin login separately if you think it woud help. Thanks!

    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  2. There is no limitation in Gravity Forms which will cause this: it's all in the server configuration. There are several restrictions in PHP which could be causing a problem. Here is one user's discovery of some other settings which will affect this:

    http://www.gravityhelp.com/forums/topic/unable-to-upload-larger-pictures#post-75856

    • php_value upload_max_filesize
    • php_value post_max_size
    • php_value max_execution_time
    • php_value max_input_time
    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  3. Hi Chris,

    Thank you for getting back to me so quickly. I'm aware that it's all in the server configuration but the thing is, I've tried my setup on 3 different servers and I've modified all of the settings above on each server and end up with the same results. One VPS, one dedicated (university server) and one shared server. This is why I finally decided to come to post here to see if you might be able to look into it. You can see my PHP config here: http://posttelegraph.com/info.php

    If you have any other thoughts I'd really appreciate it. Thanks!

    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  4. David Peralty

    Have you tried various other file sizes? It could still be a timeout issue. I have a hard time believing most people can upload 20MB in 2 minutes. Though it would take some serious testing to confirm and I wouldn't want you to push the script timeouts to too high of a number in case it effects performance in other ways (with badly behaving scripts).

    If I were going to really test this out and figure things out, I would start by grabbing a generic PHP file upload script and testing using that. That way I'm isolating as many variables as possible (WordPress, Gravity Forms, etc...) and can focus on the raw issue of uploading large files and confirming that they work as expected.

    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  5. All right after a number of additional hours of digging, the culprit is FastCGI. After disabling FastCGI and switching back to the standard Apache Module it seems to have cleared up the problem. For your future reference it seems that FastCGI is a fairly common cause of large file upload errors.

    Posted 11 years ago on Friday January 11, 2013 | Permalink
  6. David Peralty

    Thanks for letting us know. I'll keep that in the back of my mind and let the other support personnel know.

    Posted 11 years ago on Friday January 11, 2013 | Permalink

This topic has been resolved and has been closed to new replies.