From: Vincent Vanwaelscappel Date: Thu, 14 Oct 2021 14:19:48 +0000 (+0200) Subject: wip #4791 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=15b1ba17d219aa879a85e913729b68de440796f7;p=cubist_cms-back.git wip #4791 --- 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'));