From 93568d562441fb744b4ad61507bd2307550609fd Mon Sep 17 00:00:00 2001 From: Nicole Xu Date: Tue, 27 Feb 2024 16:26:59 -0500 Subject: [PATCH] Reworking logic to determine if our image was stored in a cloud based disk. --- src/Components/Forms/Uploader.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Components/Forms/Uploader.php b/src/Components/Forms/Uploader.php index eeac399..5da2375 100644 --- a/src/Components/Forms/Uploader.php +++ b/src/Components/Forms/Uploader.php @@ -100,13 +100,7 @@ protected function setUp(): void $storeMethod = $component->getVisibility() === 'public' ? 'storePubliclyAs' : 'storeAs'; if (is_media_resizable($extension)) { - if ( - ( - in_array($component->getDiskName(), config('curator.cloud_disks')) - && config('livewire.temporary_file_upload.directory') !== null - ) - || in_array(config('livewire.temporary_file_upload.disk'), config('curator.cloud_disks')) - ) { + if (in_array(config('livewire.temporary_file_upload.disk'), config('curator.cloud_disks')) && config('livewire.temporary_file_upload.directory') !== null) { $content = Storage::disk($component->getDiskName())->get($file->path()); } else { $content = $file->getRealPath();