Skip to content

Commit

Permalink
Fix bug with uploading large file
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhendricks committed Oct 23, 2018
1 parent d239f86 commit 6210fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function upload(array $options)

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

if ($options['size'] < $this->largeFileLimit || $options['size'] < $this->recommendedPartSize) {
if ($options['size'] <= $this->largeFileLimit && $options['size'] <= $this->recommendedPartSize) {
return $this->uploadStandardFile($options);
} else {
return $this->uploadLargeFile($options);
Expand Down

0 comments on commit 6210fab

Please sign in to comment.