Can't upload files > 200mb using WebDAV on Fedora 29

Nextcloud version (eg, 12.0.2): 15
Operating system and version (eg, Ubuntu 17.04): Fedora 29
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.1): 7.2

The issue you are facing:

Can’t upload files >200mb using WebDAV

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

  1. Create a file > 200mb
  2. Map network drive under Windows or MacOSX
  3. Drag file over to WebDAV share, file will appear to transfer, then error out

I can upload all files just fine via the webportal.

I can copy large files from WebDAV to Windows/Mac just fine.

I’m also having the same problem, exactly, with Owncloud, so I think this problem is related to Fedora 29.

I have read the FAQs and my upload file sizes have been updated to 16G.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"XLS1rj7i4q3T119rqYlOfwAAAIs","level":3,"time":"2019-04-15T16:48:02+00:00","remoteAddr":"172.16.2.88","user":"bob","app":"no app in context","method":"PUT","url":"\/nc\/remote.php\/dav\/files\/bob\/test.mkv","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"expected filesize 339109048 got 270704640","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1130,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":513,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/ctest.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Server.php","line":301,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":222,"CustomMessage":"--"},"userAgent":"Microsoft-WebDAV-MiniRedir\/10.0.17134","version":"15.0.7.0"}
{"reqId":"XLS1rj7i4q3T119rqYlOfwAAAIs","level":4,"time":"2019-04-15T16:48:02+00:00","remoteAddr":"172.16.2.88","user":"bob","app":"webdav","method":"PUT","url":"\/nc\/remote.php\/dav\/files\/bob\/test.mkv","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"expected filesize 339109048 got 270704640","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1130,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":513,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/test.com\/nc\/remote.php\/dav\/files\/bob\/test.mkv","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Server.php","line":301,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":222,"CustomMessage":"--"},"userAgent":"Microsoft-WebDAV-MiniRedir\/10.0.17134","version":"15.0.7.0"}