WIP getting PUT with range-requests working for chunked uploades

eg. for RAI client
With this commit it should work for regular / non-versioned files
This commit is contained in:
Ralf Becker 2018-11-22 18:50:59 +08:00
parent dd8e9c6269
commit 0326f67f90

View File

@ -523,7 +523,8 @@ class HTTP_WebDAV_Server_Filesystem extends HTTP_WebDAV_Server
return "403 Forbidden";
}
$fp = fopen($fspath, "w");
// for range requests we need to open with "r+" as "w" truncates the file!
$fp = fopen($fspath, empty($options['ranges']) ? "w" : "r+");
return $fp;
}