'An Unknown Error has Occured' when cancelling large file(s) upload

So I want to put that disabling or changing the ‘max_chunk_size’ to either ‘size’ or 0 has also helped. I want to put this out for anyone else dealing with this said issue.

Set ‘output_buffering’ in your php.ini (I would do both for apache2 and fpm) to 0.
Than go into terminal, go to the directory of your nextcloud, and than type “sudo -u www-data php occ config:app:set files max_chunk_size --value [size]”, replace [size] with any number for the chunk size, something like 524288000. Nextcloud does not recommend disabling max_chunk_size, aka set it to 0, UNLESS you have a beefy setup, network, and configurations in server.

2 Likes