Nextcloud and big files

When I tried to upload a 5gb video to my selfhosted Nextcloud docker the upload froze halfway in the process. It looked like it was still transferring the file, but the timer stood still. When inspecting the file, the data remained the same size.

It seems that by default, the max size for a file upload is 500mb.

Navigate to php -> php-local.ini

I added these field:

  • upload_max_filesize = 10G
  • post_max_size = 11G

Increasing the max filesize to 10GB and having a bigger value at the post max size field to make sure it will post.

Also edited this file: nginx->site-confs->default

  • client_max_body_size 20G

Leave a Comment

Your email address will not be published. Required fields are marked *