mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Merge pull request #13871 from PLUTEX/master
dav: Fix handling of chunked WebDAV upload
This commit is contained in:
@@ -205,7 +205,9 @@ class File extends Node implements IFile {
|
||||
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
||||
$expected = $_SERVER['CONTENT_LENGTH'];
|
||||
}
|
||||
throw new Exception('Error while copying file to target location (copied bytes: ' . $count . ', expected filesize: ' . $expected . ' )');
|
||||
if ($expected !== "0") {
|
||||
throw new Exception('Error while copying file to target location (copied bytes: ' . $count . ', expected filesize: ' . $expected . ' )');
|
||||
}
|
||||
}
|
||||
|
||||
// if content length is sent by client:
|
||||
|
||||
Reference in New Issue
Block a user