aboutsummaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre/directory.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-25 17:00:20 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-25 17:05:14 +0200
commit09b64535a9099bdf9c71fa96b3aab2e49206ffde (patch)
tree54c21a6e17b71e95eeeae386a3c136ca6e7c6632 /lib/connector/sabre/directory.php
parent68bfcfbf77ff938fa93b7f80c991c2872b68b157 (diff)
downloadnextcloud-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.php13
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);