From 15b1ba17d219aa879a85e913729b68de440796f7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 14 Oct 2021 16:19:48 +0200 Subject: [PATCH] wip #4791 --- src/app/Magic/Controllers/CubistMagicController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Magic/Controllers/CubistMagicController.php b/src/app/Magic/Controllers/CubistMagicController.php index e43092f..38b462f 100644 --- a/src/app/Magic/Controllers/CubistMagicController.php +++ b/src/app/Magic/Controllers/CubistMagicController.php @@ -366,7 +366,7 @@ class CubistMagicController extends CubistCrudController $fname = implode('.', $e); $fname = Str::slug($fname); - $nfile = new UploadedFile($file->getPath(), $fname . '.' . $ext, $file->getMimeType(), $file->getError()); + $nfile = new UploadedFile($file->getPathname(), $fname . '.' . $ext, $file->getMimeType(), $file->getError()); request()->files->set('file', $nfile); $media = $entry->addMediaFromRequest('file')->toMediaCollection($request->input('collection')); -- 2.39.5