WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Can't send large files but everething is Ok in PHP, WordPress and webmail (11 posts)

  1. pepprim
    Member
    Posted 1 year ago #

    Hi,

    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]

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    So how have you set the file tag?

  3. pepprim
    Member
    Posted 1 year ago #

    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:

    [file-732]

    This is what I understood from the instructions at http://contactform7.com/

    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

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. pepprim
    Member
    Posted 1 year ago #

    '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.

  6. Max Beta
    Member
    Posted 1 year ago #

    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:
    /wp-content/plugins/contact-form-7/modules/file.php

  7. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

  8. Max Beta
    Member
    Posted 1 year ago #

    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.

  9. pepprim
    Member
    Posted 1 year ago #

    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.

  10. pepprim
    Member
    Posted 1 year ago #

    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.

  11. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.