I’m setting up a site for a friend and he wants people to be able to submit/upload files. I’m using Wordpress and Fast Secure Contact Form.
The limit is set to 24Mb on the server, but I couldn’t complete the upload of a 22Mb video file whilst testing. I changed the sending method from Wordpress to Geekmail, and got an error message.
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 25587485 bytes) in /home/papccoma/public_html/wp-content/plugins/si-contact-form/ctf_geekMail-1.0.php on line 1027
If I try to increase the file limit size to the next available option (32Mb) it won’t save when I submit. Nor can I increase memory limit (via php.ini).
Well that seems to indicate the other scripts in the page load are consuming at least 45 MB… which seems to be an obscene amount of space, even if for some reason you were making a copy (which would only be another 22 MB itself)…
For uploiads, not only the file size specified in php.ini is relevant, but also the memory limit and the setting for the total POST size.
Check at least memory_limit, post_max_size and upload_max_filesize.
Thanks for the analysis/tips. I’ll keep pushing. I just managed to upload a 19Mb video file…so I’ll just keep testing. I think I’l have to contact the webhost regarding PHP.ini.
Even if I change the settings, they revert to the original settings.
Looks like I have hit the limit (some of the PHP.ini values below).
Who do I ask for advice in relation to larger upload limit? Or would I have to move the site to a dedicated server to do that? It’s on shared hosting so that is probably the limit for a reason?