]> _ Git - cubist_cms-back.git/commitdiff
wip #4791
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 14:19:48 +0000 (16:19 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 14:19:48 +0000 (16:19 +0200)
src/app/Magic/Controllers/CubistMagicController.php

index e43092f12bd96eb02503b4652be0bc451e709271..38b462f1f1ab8576ac95cf43268315ae8eceb77f 100644 (file)
@@ -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'));