]> source.dussan.org Git - nextcloud-server.git/commit
Respect user settings in php.ini if they are big enough
authorMicke Nordin <kano@sunet.se>
Fri, 29 Apr 2022 06:21:53 +0000 (08:21 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 22 Aug 2022 21:36:31 +0000 (21:36 +0000)
commitab7a5de7937d375cc869af9c1648b57bf35fa8f7
tree6c5a9575bcc0aea06d66efd10fec461f1cc97e77
parent65299288a24714de1339290f422e8aa2ade99fa3
Respect user settings in php.ini if they are big enough

In the admin guide:
* https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html

it is mentioned that you can tweek:
* max_input_time
* max_execution_time

in order to enable larger file uploads. However, the current codebase
will hard code these values to one hour, no matter what the user sets in
php.ini.

This patch will allow the user to set these settings in php.ini and they
will be respected, if and only if, they are set to something bigger than
3600 seconds.

Signed-off-by: Micke Nordin <kano@sunet.se>
lib/base.php