Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: edb on December 02, 2004, 10:32:20 PM
-
Anyone know how to resolve this error;
Maximum POST size reached - see docs/faq.txt for more information
I have already created an entry in the /etc/e-smith/templates-custom/etc/php.ini/60FileUploads file to read:
file_uploads = On
upload_max_filesize = {
my $mf = db_get_prop($confref, 'php', 'UploadMaxFilesize') || "100M";
$OUT .= "$mf";
}
But I continue to get the error. Any other ideas?
-
This script will set it to 70 million bytes, adjust to taste - not that the number of bytes MUST be as written, not 70M:
---- Cut here ------
#!/bin/sh
/sbin/e-smith/config setprop php PostMaxSize 70000000
/sbin/e-smith/config setprop php UploadMaxFilesize 70000000
/etc/e-smith/events/actions/conf-php
/etc/rc.d/init.d/httpd-e-smith graceful
---- Cut here ------
BTW, this also raises the limit for Horde attachments, if anyone is looking to do that.
-
Thank you ....NickR
That worked perfectly :pint:
-
I spoke a little to soon.
Phpinfo now reads the correct PostMaxSize 70000000 and UploadMaxFilesize 70000000 but when I actually try to upload a 56Mg file I still get the "Maximum POST size reached - see docs/faq.txt for more information" error. I rebooted the server, tried again but still no go. Any ideas would be appreciated.
-
Problem fixed by upgrading PHP ...