I am running Nextcloud in the following environment
PRETTY_NAME=“Ubuntu 22.04.3 LTS”
nginx/1.25.3
PHP 8.2.13 (cli) (built: Nov 24 2023 08:47:18) (NTS)
mariadb Ver 15.1 Distrib 10.6.12-MariaDB
(I don’t use docker.)
The upload itself seems to work fine, but when I try to upload a large file, I get an “estimating time left” message and the upload never finishes.
So, I added the following description.
[/etc/php/8.2/fpm/php.ini].
max_execution_time 21600
request_terminate_timeout 0
client_max_body_size 15G
max_input_time = -1
memory_limit = 1024M
post_max_size = 15G
upload_max_filesize = 15G
[/etc/nginx/site-available/example.com.conf].
fastcgi_read_timeout 7200;
fastcgi_send_timeout 7200;
fastcgi_connect_timeout 7200;
proxy_read_timeout 7200;
proxy_send_timeout 7200;
proxy_connect_timeout 7200;
send_timeout 7200;
client_max_body_size 15G;
client_body_timeout 600s;
fastcgi_buffers 64 4K;
client_body_buffer_size 512k;
If you look at the system in the left pane under administration, you will see the maximum upload size: 4.9 GB in PHP.
In reality, however, it is not even possible to upload a 10 MB file.
What could be the cause?
Thanks!