Same issues, getting 413 entity to large issues. Pretty frustrating since I have some zip and ISO files that are around the 5G mark... Have been messing with this for a few days blindly and am about to just start paying for storage.
Tried adding these values with no change besides the WebGUI showing larger file uploads are supported. Issues only occur with the sync (webDav) from the windows client...
Unraid Variable
PHP_UPLOAD_LIMIT = 10G
Config File Additions
// New configurations for large file uploads
'filelocking.enabled' => true,
'filelocking.locking_method' => 'stat',
'filelocking.lock_timeout' => 3600,
'filelocking.lock_path' => '/tmp/nextcloud-lock/',
// Increase PHP limits
'upload_max_filesize' => '100G',
'post_max_size' => '100G',
'max_input_time' => 3600,
'max_execution_time' => 3600,
'memory_limit' => '1024M',
// Adjust chunk size for better performance with large files
'files.max_chunk_size' => 20971520,
// Increase session lifetime for long uploads
'session_lifetime' => 86400,