diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index 2917b1d19f18b5e3af6397707ddcd2187287b8c7..8e893b0aac627fe2308e202616f1de5f11570e02 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -181,9 +181,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
 			$this->connection->putObject(array(
 				'Bucket' => $this->bucket,
 				'Key' => $path . '/',
-				'Body' => '',
-				'ContentType' => 'httpd/unix-directory',
-				'ContentLength' => 0
+				'ContentType' => 'httpd/unix-directory'
 			));
 			$this->testTimeout();
 		} catch (S3Exception $e) {