Skip to content

Commit

Permalink
Update FileUploader.php
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
TimBloembergen committed Jun 14, 2023
1 parent 0b86d5a commit 7e5869e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bynder/Api/Impl/Upload/FileUploader.php
Expand Up @@ -115,7 +115,7 @@ function ($uploadRequestInfo) use ($data) {
$promises = $this->uploadChunkIterator($file, $data['filePath'], $uploadRequestInfo,
$numberOfChunks, $chunkNumber);
// After that we batch them all together using Each::ofLimitAll, which will guarantee all chunks have been uploaded properly.
$eachPromises = Promise\Each::ofLimitAl($promises, self::MAX_CONCURRENT_CHUNKS);
$eachPromises = Promise\Each::ofLimitAll($promises, self::MAX_CONCURRENT_CHUNKS);
return $eachPromises->then(
function ($value) use ($uploadRequestInfo, $chunkNumber) {
return ['requestInfo' => $uploadRequestInfo, 'chunkNumber' => $chunkNumber];
Expand Down Expand Up @@ -371,4 +371,4 @@ private function saveMediaAsync($data)
}
return $this->requestHandler->sendRequestAsync('POST', $uri, ['form_params' => $data]);
}
}
}

0 comments on commit 7e5869e

Please sign in to comment.