Fixed issue with creating spaces

This commit is contained in:
Dev Ang 2018-07-16 05:57:33 +05:30 committed by GitHub
parent 0fe3d86781
commit 9fb77c5f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
}
}