Unable to upload via the web-interface file larger than 2MB

For some reason I am unable to use the web interface to upload file larger than 2mb. The progress bar stay stuck on “A few seconds now” (I have no issue via the sync client). Log shows nothing.

Anyone experienced this or have some insight on why this is happening?

-Steph


Nextcloud 12.0.3
Apache 2.4.27
Redis
PHP 7.0.12

Adjust in your php.ini the max upload size.

Login as root and perform:
php -i | grep 'Configuration File'

After adjust the php.ini using vi or nano
nano /etc/php.ini

Change as desired:
max_post_size = 10M
upload_max_filesize = 10M

Thank you,
However both of these variables are set at 72M …

so it must be something else

Maybe you have to modify other php.ini files, it depends on your distribution.
In debian/ubuntu are
/etc/php/7.0/apache2/php.ini

(just an examples)

remember to restart your web server after modification to make them active.

$ grep size /etc/php/7.0/apache2/php.ini | grep -v "^;"
post_max_size = 8M
upload_max_filesize = 2M
pdo_mysql.cache_size = 2000
mysqli.cache_size = 2000

Centos + cPanel here,
I have run thru all configuration files, all are way over that 2M stall. I say stall because there is nothing is showing that an error is occurring Front end and logs
I am running ResourceSpace 8.1 on the same cluster and there is absolutely no problem uploading large files.

Please check the php vars inside your cPanel user which you installed Nextcloud with. It might be the case that you have custom vars setup for this user for post_max_size and upload_max_filesize.