Skip to content

Commit

Permalink
Updated upload method, added new uploadLargeFile method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig McKie committed Mar 29, 2024
1 parent 1ef4e73 commit 4bdb7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -313,7 +313,7 @@ public function upload(mixed $data, string $fileName = '', string $bucketId = ''
*/
$options = [
'uploadUrl' => $uploadUrl['uploadUrl'],
'body' => $fileContent,
'body' => $fileContents,
];

/*
Expand Down

0 comments on commit 4bdb7d9

Please sign in to comment.