From 4fb0880d4e6a611d828a151b43662aa19a35ef46 Mon Sep 17 00:00:00 2001 From: Roj Vroemen Date: Thu, 12 Dec 2024 15:45:45 +0100 Subject: [PATCH] Use `get` method on `TemporaryUploadedFile` to fix double root issue --- src/Components/Forms/Uploader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Forms/Uploader.php b/src/Components/Forms/Uploader.php index a3ee422..5a51bd3 100644 --- a/src/Components/Forms/Uploader.php +++ b/src/Components/Forms/Uploader.php @@ -101,7 +101,7 @@ protected function setUp(): void if (is_media_resizable($file->getMimeType())) { 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()); + $content = $file->get(); } else { $content = $file->getRealPath(); }