diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-25 17:00:20 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-25 17:05:14 +0200 |
commit | 09b64535a9099bdf9c71fa96b3aab2e49206ffde (patch) | |
tree | 54c21a6e17b71e95eeeae386a3c136ca6e7c6632 /lib/connector/sabre/directory.php | |
parent | 68bfcfbf77ff938fa93b7f80c991c2872b68b157 (diff) | |
download | nextcloud-server-09b64535a9099bdf9c71fa96b3aab2e49206ffde.tar.gz nextcloud-server-09b64535a9099bdf9c71fa96b3aab2e49206ffde.zip |
fixing copyright and add class documentation
Diffstat (limited to 'lib/connector/sabre/directory.php')
-rw-r--r-- | lib/connector/sabre/directory.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index 3181a4b310f..29374f7a6cf 100644 --- a/lib/connector/sabre/directory.php +++ b/lib/connector/sabre/directory.php @@ -74,19 +74,6 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa \OC\Files\Filesystem::file_put_contents($partpath, $data); - //detect aborted upload - if (isset ($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT' ) { - if (isset($_SERVER['CONTENT_LENGTH'])) { - $expected = $_SERVER['CONTENT_LENGTH']; - $actual = \OC\Files\Filesystem::filesize($partpath); - if ($actual != $expected) { - \OC\Files\Filesystem::unlink($partpath); - throw new Sabre_DAV_Exception_BadRequest( - 'expected filesize ' . $expected . ' got ' . $actual); - } - } - } - // rename to correct path \OC\Files\Filesystem::rename($partpath, $newPath); |