Skip to content

Commit 3b6fa6b

Browse files
fix(Multipart): properly handle falsey values like "0"
1 parent 7746c57 commit 3b6fa6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Multipart/AbstractUploadManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private function determineState(): UploadState
240240
$id = [$required['upload_id'] => null];
241241
unset($required['upload_id']);
242242
foreach ($required as $key => $param) {
243-
if (!$this->config[$key]) {
243+
if (!isset($this->config[$key]) || $this->config[$key] === '') {
244244
throw new IAE('You must provide a value for "' . $key . '" in '
245245
. 'your config for the MultipartUploader for '
246246
. $this->client->getApi()->getServiceFullName() . '.');

0 commit comments

Comments
 (0)