From 9fb77c5f2fdf6f710ce63ca8c24923086d90e6a9 Mon Sep 17 00:00:00 2001 From: Dev Ang Date: Mon, 16 Jul 2018 05:57:33 +0530 Subject: [PATCH] Fixed issue with creating spaces --- spaces.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spaces.php b/spaces.php index 794e4c6..7da19ac 100644 --- a/spaces.php +++ b/spaces.php @@ -35,7 +35,8 @@ class SpacesConnect { 'key' => $access_key, 'secret' => $secret_key, ), - 'bucket_endpoint' => true + 'bucket_endpoint' => true, + 'signature_version' => 'v4-unsigned-body' )); } catch (\Exception $e) { $this->HandleAWSException($e); @@ -293,7 +294,7 @@ class SpacesConnect { 'Bucket' => $this->space, 'Key' => $fileName, )); - + return $result['Body']; }else{ $result = $this->client->getObject(array( @@ -301,7 +302,7 @@ class SpacesConnect { 'Key' => $fileName, 'SaveAs' => $destinationPath )); - + return $this->ObjReturn($result->toArray()); } }