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