Support » Plugin: Contact Form 7 » Can't send large files but everething is Ok in PHP, WordPress and webmail

  • Resolved pepprim



    First of all I apologize for my very bad English …

    I fail to submit forms with large attachments.

    I’ve already done all the checks and tests recommended in this forum and other posts that I found through Google and I can’t understand what could be the problem.

    The PHP configuration on my hosting is ready to upload files of 30MB and WordPress too. I checked this with several files around 15MB size. I had no problem to upload them through the media uploader of WordPress and also I sent these same files as attachments without any problem from webmail client of my hosting provider. But when I try to upload a file larger than 2MB with CF7 I can’t send the form and…

    …I don’t have Akismet installed.
    …and, yes, I configure the maximum file size in the file tag.

    So there’s is another way to do this work? Thanks a lot in advance!

    [PS: I’m using latest CF7 3.3.3 version]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Takayuki Miyoshi


    So how have you set the file tag?

    Hi Takayuki,

    Thanks for your attention. I apologize to not answer your question before (yesterday was a long complicated day at work …).

    Well, for the file tag I tried both in bytes and megabytes. Using the plugin generator itself.

    For up to 10 megabytes, first I tried with:

    [file* file-732 limit:10485760 filetypes:jpg|jpeg]

    Later with:

    [file* file-732 limit:30mb filetypes:jpg|jpeg]

    And for the box to indicate what files to be attached to the message, simply:


    This is what I understood from the instructions at

    To complete the Information. Here the PHP settings I checked with the typical phpinfo.php script:

    max_execution_time: 150
    max_file_uploads: 20
    max_input_nesting_level: 64
    max_input_time: 60
    memory_limit: 128M
    post_max_size: 31M
    upload_max_filesize: 30M

    Plugin Author Takayuki Miyoshi


    OK. What error do you see after trying submitting the form?

    ‘Failed to send your message. Please try later or contact the administrator by another method.’

    It corresponds to the second box of costumizable messages at the end of the forms edit page.

    I have been struggling with this too. No matter what settings I use the default 1mb file size is still there.

    I tried now to hard code the default file size in the plugin. And it worked right away with a 5 mb limit.

    This is not a recommend method since it will be overwritten when the plugin updates. But as a testing method it was great because I could rule out any other problems.

    The settings can be found in this file:

    Plugin Author Takayuki Miyoshi


    I get a yellow alert at the bottom saying “validation error” and a red alert “file too big”.

    I am running the hard coded version set at 5 mb. I tried to upload a bigger image now. I think the error messages looked the same before when it was using the 1 mb default.

    I got red…

    Now I’m trying with WP Mail SMTP plugin and the instructions of Mario Vargas.

    There is an important change. WP Mail STMP + Contact Form 7 works fine with small files as Contact Form 7 does alone. About large files, the change is that now when I try to submit I get a blank screen. There is no message error and I don’t recieve any mail, but I checked the wpcf7_uploads directory whith my FTP client and I found all the large files I tried to send with this new combination of the two plugins. Before installing WP Mail SMTP i didn’t get this result.

    Just after write the last reply I checked again the wpcf7_uploads directory at the FTP and all the three large files mentioned disappeared, but I have not received any email with these attachments, yet.

    Plugin Author Takayuki Miyoshi


    I guess there is a problem somewhere between your web (PHP) server and mail server. Try checking the error logs of those servers. You’ll find some clues there.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can't send large files but everething is Ok in PHP, WordPress and webmail’ is closed to new replies.