From ad7fab116baf8ee4c737e80d9ab1f06a48c284d3 Mon Sep 17 00:00:00 2001 From: Gracjan Kubicki Date: Thu, 1 Jun 2023 23:20:41 +0200 Subject: [PATCH] main,fixed more --- src/Helpers/UploadHelper.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Helpers/UploadHelper.php b/src/Helpers/UploadHelper.php index 69443fd..35f20e4 100644 --- a/src/Helpers/UploadHelper.php +++ b/src/Helpers/UploadHelper.php @@ -26,14 +26,14 @@ class UploadHelper extends AbstractHelper * @return File */ public function uploadStream( - string $filePath, - $bucketIdOrUploadUrl, - string $fileName, - $stream, - ?string $contentType = null, - FileInfo|array $fileInfo = [], - ?array $fileRetention = null, - ?bool $legalHold = null, + $bucketIdOrUploadUrl, + string $filePath, + string $fileName, + $stream, + ?string $contentType = null, + FileInfo|array $fileInfo = [], + ?array $fileRetention = null, + ?bool $legalHold = null, ?ServerSideEncryption $serverSideEncryption = null ): File { @@ -67,7 +67,7 @@ public function uploadStream( return $this->uploadLargeFile( $bucketId, $fileName, - $stream, + $filePath, $contentType, $fileInfo, $legalHold, @@ -123,8 +123,8 @@ public function uploadFile( } $file = $this->uploadStream( - $filePath, $bucketIdOrUploadUrl, + $filePath, $fileName, $handle, $contentType,