Increase File Size Uploads with .htaccess
Log in to Portainer
Go to your list of containers
Find your NextCloud container
Click the >_ (Exec Console)
Run the following commands:
- apt update
- apt upgrade
- apt install nano
- nano .htaccess
Once you're editing .htaccess, copy and paste the following lines into the file:
php_value memory_limit 2G
php_value upload_max_filesize 16G
php_value post_max_size 16G
php_value max_input_time 3600
php_value max_execution_time 3600
You can add this to the top or the bottom of the file as you see fit.
These numbers can be adjusted to whatever you'd like your max filesize to be. Be sure to make the post_max_size a bit larger than the upload_max_filesize.
Save (CTRL+O)
Exit (CTRL+X)
Go back to your Portainer dashboard and restart the NextCloud container.