Multiple file uploads Failed to send your message
-
I am having a problem sending multiple file uploads with CF7 when the files are over a certain size. I have spent many hours investigating and am unable to find a solution.
The problem: If you uploade multiple files (2 or more) that are over approximately approximately 6MB in total (photos .JPGs) the message “Failed to send your message. Please try later or contact the administrator by another method.” is displayed.
At first I thought this must be file size limits so I added this into a PHP.INI folder in the root of the WordPress site:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
memory_limit = 768MThat didn’t work so I also added this to the top of the functions.php:
@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );That didn’t work either.
I also added overrides into .htaccess.
Checked configuration settings at every level.
Made sure the sender email domain is the same as the hosted domain.
There is nothing report reported in the Apache server log.
Enabled debug mode and nothing is reported on screen or in a log.
I changed the upload temporary folder for WCF7 and that made no difference either.
During my testing, I tried the following combinations with 1, 2 and 3 file uploads for each of the upload fields in the form.
test 1 = 1 – 300kb, 2 – 200kb, 3 – 450kb = works
test 2 = 1 – 1.9mb, 2 – 1.9mb, 3 – 1.9mb = works
test 3 = 1 – 2mb, 2 – 1.9mb, 3 – 1.9mb = works
test 4 = 1 – 2.4mb, 2 – 2.4mb, 3 – 2.4mb = fails
test 5 = 1 – 6.5mb = works
test 6 = 1 – 6.5mb, 2 – 6.5mb = failsfailure message = “Failed to send your message. Please try later or contact the administrator by another method.”
Is it something to do with the combined file sizes being over 6mb? But why should that be the case if this is within the extended upload limits?
Form includes:
Please upload your photo (Image files only, max file size 15mb)[file photo-upload1 limit:15mb filetypes:.jpg|.jpeg|.gif|.tiff|.tif|.bmp|.png]
Please upload your photo (Image files only, max file size 15mb)
[file photo-upload2 limit:15mb filetypes:.jpg|.jpeg|.gif|.tiff|.tif|.bmp|.png]Please upload your photo (Image files only, max file size 15mb)[file photo-upload3 limit:15mb filetypes:.jpg|.jpeg|.gif|.tiff|.tif|.bmp|.png]
Mail page, file attachments:
[photo-upload1][photo-upload2][photo-upload3]
I really hope someone can help with this as it would benefit me and hopefully others too. Others who have implemented other solutions to get round this issue.
Many thanks,
Rob
- The topic ‘Multiple file uploads Failed to send your message’ is closed to new replies.