Update spaces.php

This commit is contained in:
Andrei de Oliveira Mosman 2020-01-17 09:39:44 -03:00 committed by GitHub
parent ad0726e41e
commit 2f5eb61545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,7 @@ class SpacesConnect {
if(!$is_file){ if(!$is_file){
$file = $pathToFile; $file = $pathToFile;
}else{ }else{
$file = fopen($pathToFile, 'r+'); $file = fopen($pathToFile, 'r');
} }
try { try {
$result = $this->client->putObject(array( $result = $this->client->putObject(array(