Hi,
Got a weird error/issue on 4.6.4 - pretty sure it's in all versions. OS is RHEL 5.8
We first came across this in the EES, but after further testing it also happens in the admin interface so is a little lower level.
It seems that upload_max_filesize is 'ignored' when the file uploaded is larger than than the post_max_size, ie post_max_size is hit first.
Example:
in php.ini:
upload_max_filesize = 20M post_max_size = 30M
Upload a file 45 MB
Output:
Nothing on admin interface
apache error_log:
[Mon Apr 23 12:38:52 2012] [error] [client 0.0.0.0] PHP Warning: POST Content-Length of 46500343 bytes exceeds the limit of 31457280 bytes in Unknown on line 0,
Ok, lets increase the post_max_size so it's approx upload filesize + php/program size
upload_max_filesize = 20Mpost_max_size = 60M</pre><br />
Upload a file 45 MB
Output:
Good error in admin interface:
[2012-04-23 12:41:00][186003:andrew][512:mysource warning][R] (/core/include/locale_manager.inc:547) - The uploaded file "test2.tar.gz" exceeded the size specified by the 'upload_max_filesize' directive in php.ini (20M) [SYS0022] [2012-04-23 12:41:00][186003:andrew][512:mysource warning][R] (/core/include/locale_manager.inc:547) - Failed updating web path. Path already exists? [CORE0056]
Again, if you were to upload a file larger than post_max_size you wouldn't get an error apart form apache
I think this should mean that there needs to be an exception raised when the post_max_size is exceeded, or somehow the file size should be calculated first (and raise the upload_max_filesize error). Otherwise, as shown the user gets no feedback when uploading files that are in this grey area - and it flows through to EES users as well.
Is anyone else able to replicate this? Please let me know if any more details would help