Skip to content

Commit dbcab67

Browse files
author
Ahmad Fikrizaman Bin Abd Rahim
committed
fix problem with uploading large file
1 parent 87cbbb1 commit dbcab67

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function upload(array $options)
217217

218218
list($options['hash'], $options['size']) = $this->getFileHashAndSize($options['Body']);
219219

220-
if ($options['size'] < $this->largeFileLimit || $options['size'] < $this->recommendedPartSize) {
220+
if ($options['size'] <= $this->largeFileLimit && $options['size'] <= $this->recommendedPartSize) {
221221
return $this->uploadStandardFile($options);
222222
} else {
223223
return $this->uploadLargeFile($options);

src/Http/Client.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ public function request($method, $uri = null, array $options = [], $asJson = tru
5151
}
5252

5353
return $response->getBody();
54-
// return $response->getBody()->getContents();
5554
}
5655
}

0 commit comments

Comments
 (0)