diff --git a/src/Client.php b/src/Client.php index cefb0a8..882edae 100644 --- a/src/Client.php +++ b/src/Client.php @@ -288,7 +288,7 @@ public function upload(mixed $data, string $fileName = '', string $bucketId = '' rewind($data); - $fileContent = stream_get_contents($data); + $fileContents = stream_get_contents($data); } elseif(file_exists($data)) { @@ -313,7 +313,7 @@ public function upload(mixed $data, string $fileName = '', string $bucketId = '' */ $options = [ 'uploadUrl' => $uploadUrl['uploadUrl'], - 'body' => $fileContent, + 'body' => $fileContents, ]; /*