From: Vincent Vanwaelscappel Date: Tue, 8 Mar 2022 16:53:52 +0000 (+0100) Subject: wait #4876 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c92b4b9c4b7a58d2520b2622fd4c9b35c43a0437;p=odl.git wait #4876 --- diff --git a/app/Http/Controllers/Admin/Operations/ImportAssetsOperation.php b/app/Http/Controllers/Admin/Operations/ImportAssetsOperation.php index 412be00..c62d98a 100644 --- a/app/Http/Controllers/Admin/Operations/ImportAssetsOperation.php +++ b/app/Http/Controllers/Admin/Operations/ImportAssetsOperation.php @@ -43,7 +43,7 @@ trait ImportAssetsOperation $name = $file->getClientOriginalName(); $e = explode('-', $name, 2); - $f = $file->move(sys_get_temp_dir(), Str::slug($file->getBasename('.' . $ext)) . '.' . $ext); + $f = $file->move(sys_get_temp_dir(), Str::slug(str_replace('.' . $ext, '', $name)) . '.' . $ext); $assetId = trim($e[0]); if (!preg_match("/\d+/", $assetId, $matches)) { continue;