]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix S3 folder creation for new AWS API
authorVincent Petry <pvince81@owncloud.com>
Wed, 22 Oct 2014 21:00:30 +0000 (23:00 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 22 Oct 2014 21:00:30 +0000 (23:00 +0200)
This also fixes the unit tests

apps/files_external/lib/amazons3.php

index ae306fac420be25f46649c68f186ed301c84979b..32669612890a4653d29dade42f1e54448308174f 100644 (file)
@@ -184,6 +184,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
                        $this->connection->putObject(array(
                                'Bucket' => $this->bucket,
                                'Key' => $path . '/',
+                               'Body' => '',
                                'ContentType' => 'httpd/unix-directory'
                        ));
                        $this->testTimeout();