diff --git a/spaces.php b/spaces.php index 8494bf4..2a0a185 100644 --- a/spaces.php +++ b/spaces.php @@ -268,7 +268,7 @@ class SpacesConnect { if(!$is_file){ $file = $pathToFile; }else{ - $file = fopen($pathToFile, 'r+'); + $file = fopen($pathToFile, 'r'); } try { $result = $this->client->putObject(array(