]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #11726 from owncloud/s3-fixunittests
authorMorris Jobke <hey@morrisjobke.de>
Thu, 23 Oct 2014 10:35:44 +0000 (12:35 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 23 Oct 2014 10:35:44 +0000 (12:35 +0200)
Fix S3 folder creation for new AWS API

1  2 
apps/files_external/lib/amazons3.php

index da919236f8fd405a8369a99ba295cb6a73762286,32669612890a4653d29dade42f1e54448308174f..52255fb559e4acf0f3f94cd132e83a2e1752ea73
@@@ -153,9 -181,10 +153,10 @@@ class AmazonS3 extends \OC\Files\Storag
                }
  
                try {
 -                      $this->connection->putObject(array(
 +                      $this->getConnection()->putObject(array(
                                'Bucket' => $this->bucket,
                                'Key' => $path . '/',
+                               'Body' => '',
                                'ContentType' => 'httpd/unix-directory'
                        ));
                        $this->testTimeout();