Skip to content

Commit

Permalink
Merge pull request #451 from nxgcx/fix/cloud-disk-livewire-temp-disk
Browse files Browse the repository at this point in the history
Fix: Curator Cloud Disks and the Livewire Temporary Disk
  • Loading branch information
awcodes authored Feb 28, 2024
2 parents a5cf90a + 93568d5 commit 39aebbd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Components/Forms/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 39aebbd

Please sign in to comment.