mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #01716
[Bug 634193] Re: post-max-size exceeding error is not tracked
Possible workaround is to set post-max-size much higher than
upload_max_filesize in php ini/.htaccess file, so that post-max-size
will never be hit.
Setting post-max-size and upload_max_filesize to equal value means that
upload_max_filesize will never be triggered, any file equal to
upload_max_filesize will trigger post-max-size (because post-max-size
consider the whole POST header size which has some data apart of the
file content, see bug #634829).
Setting post-max-size a little bit higher than upload_max_filesize will
not help either, it will only produce traceable file upload error if the
file size is between upload_max_filesize and post-max-size, so the
probability of having file in this gap is relatively small.
Post-max-size has the highest priority over file-related errors. Say, if
file is higher than post-max-size, corresponding error will be triggered
first despite having MAX_FILE_SIZE hidden value and/or
upload_max_filesize set to lower value.
There was a related discussion here:
http://mahara.org/interaction/forum/topic.php?id=831
--
post-max-size exceeding error is not tracked
https://bugs.launchpad.net/bugs/634193
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: New
Bug description:
If post-max-size PHP setting (http://php.net/manual/en/ini.core.php#ini.post-max-size) value is exceeded (by large file upload for example) no error is triggered, as result wherever upload is handled by ajax, no callback functions are called.
This is partly related to bugs:
https://bugs.launchpad.net/mahara/+bug/633760
https://bugs.launchpad.net/mahara/+bug/547505
Given that this error is triggered by PHP prior to processing the code, it can't be catch through exception. As forums suggests, it may worth using error_get_last() and grep result for "PHP Warning: POST Content-Length of" string.
References