diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index da919236f8fd405a8369a99ba295cb6a73762286..52255fb559e4acf0f3f94cd132e83a2e1752ea73 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -156,6 +156,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
 			$this->getConnection()->putObject(array(
 				'Bucket' => $this->bucket,
 				'Key' => $path . '/',
+				'Body' => '',
 				'ContentType' => 'httpd/unix-directory'
 			));
 			$this->testTimeout();