From: Jerome Jutteau Date: Mon, 4 Jul 2022 21:38:25 +0000 (+0200) Subject: [BUGFIX] Manage PHP configuration with "unlimited" upload X-Git-Tag: 4.5.0~18 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/1581d41cc21d3ec5609fe3d2c1e6acec2b348170?hp=1581d41cc21d3ec5609fe3d2c1e6acec2b348170 [BUGFIX] Manage PHP configuration with "unlimited" upload Setting `post_max_size` and `upload_max_filesize` PHP options to "0" is unmanaged by Jirafeau. It tries to send 0 bytes and Javascript have some zero division errors. This commit will use $max_upload_chunk_size_bytes option when available. If $max_upload_chunk_size_bytes is also set to zero, chunk size is set an arbitrary value of 10M. Non html-5 users will not have size limitation shown. fixes #272 Signed-off-by: Jerome Jutteau ---