Update ImageS3UploadPipeline.php

pull/6244/head
Shlee 2 weeks ago committed by GitHub
parent 39d9832aef
commit d1defe35e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -93,8 +93,10 @@ class ImageS3UploadPipeline implements ShouldQueue
try {
$disk = Storage::disk($baseDisk);
$file = $disk->putFileAs($storagePath, new File($path), $name, 'public');
} catch (S3Exception | ClientException | ConnectException | UnableToWriteFile | Exception $e) {}
return $disk->url($file);
return $disk->url($file);
} catch (S3Exception | ClientException | ConnectException | UnableToWriteFile | Exception $e) {
throw $e;
}
}, function (int $attempt, Exception $exception) {
return $attempt * 200;
});

Loading…
Cancel
Save