Merge pull request #13871 from PLUTEX/master
dav: Fix handling of chunked WebDAV upload
This commit is contained in:
commit
79ec7bbcf6
|
@ -205,8 +205,10 @@ class File extends Node implements IFile {
|
|||
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
||||
$expected = $_SERVER['CONTENT_LENGTH'];
|
||||
}
|
||||
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:
|
||||
// double check if the file was fully received
|
||||
|
|
Loading…
Reference in New Issue