Skip to content

Commit 93faa48

Browse files
committed
fix: can't use GET request for signed uploads
1 parent 2e14a14 commit 93faa48

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ public function getSignedAssetRequests(int $deploymentId, array $assets): Collec
645645
*/
646646
public function getSignedUploadRequests(int $projectId, string $environment, array $uploads): Collection
647647
{
648-
$requests = $this->request('get', "/projects/{$projectId}/environments/{$environment}/signed-uploads", ['uploads' => $uploads]);
648+
$requests = $this->request('post', "/projects/{$projectId}/environments/{$environment}/signed-uploads", ['uploads' => $uploads]);
649649

650650
if (!empty($uploads) && empty($requests)) {
651651
throw new RuntimeException('Unable to get authorized uploads requests from the Ymir API');

src/Command/Import/ImportUploadsCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ private function createTempDirectory(): string
158158
}
159159

160160
$attempts = 0;
161+
161162
do {
162163
++$attempts;
163164
$tmpDirectory = sprintf('%s%s%s', $baseDirectory, 'ymir_', mt_rand(100000, mt_getrandmax()));

0 commit comments

Comments
 (0)