mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-15 01:23:01 -07:00
Fixed issue with creating spaces
This commit is contained in:
parent
0fe3d86781
commit
9fb77c5f2f
1 changed files with 4 additions and 3 deletions
|
@ -35,7 +35,8 @@ class SpacesConnect {
|
||||||
'key' => $access_key,
|
'key' => $access_key,
|
||||||
'secret' => $secret_key,
|
'secret' => $secret_key,
|
||||||
),
|
),
|
||||||
'bucket_endpoint' => true
|
'bucket_endpoint' => true,
|
||||||
|
'signature_version' => 'v4-unsigned-body'
|
||||||
));
|
));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->HandleAWSException($e);
|
$this->HandleAWSException($e);
|
||||||
|
@ -293,7 +294,7 @@ class SpacesConnect {
|
||||||
'Bucket' => $this->space,
|
'Bucket' => $this->space,
|
||||||
'Key' => $fileName,
|
'Key' => $fileName,
|
||||||
));
|
));
|
||||||
|
|
||||||
return $result['Body'];
|
return $result['Body'];
|
||||||
}else{
|
}else{
|
||||||
$result = $this->client->getObject(array(
|
$result = $this->client->getObject(array(
|
||||||
|
@ -301,7 +302,7 @@ class SpacesConnect {
|
||||||
'Key' => $fileName,
|
'Key' => $fileName,
|
||||||
'SaveAs' => $destinationPath
|
'SaveAs' => $destinationPath
|
||||||
));
|
));
|
||||||
|
|
||||||
return $this->ObjReturn($result->toArray());
|
return $this->ObjReturn($result->toArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue