-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
Description
We are trying to modify the value for post_max_size
per directory through a .user.ini
-file running on php-fpm behind an Apache webserver using proxy_fgci_module. As mentioned in the docs, the setting should be a per-dir setting and we are able to see the correct values using $value = ini_get('post_max_size');
but sending a bigger value using the POST method results in a log message using the default value of 8M and the data is not submitted to the script:
NOTICE: PHP message: PHP Warning: POST Content-Length of 10746083 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
By changing the value in the php.ini, it's working as expected. Also using PUT instead of POST let me pass and receive the data.
I'd guess, the POST content size is evaluated too early, before the value of the .user.ini is set?
The upload_max_filesize
value is working fine and we are able to upload bigger files than the limit, only POST-requests with content bigger than 8M are affected.
PHP Version
Tested on 7.4 and 8.1
Operating System
No response