uploader fix

This commit is contained in:
Mostafa Moradi 2024-08-22 17:45:35 +03:00
parent 3e17b9cd34
commit 9f0c7326d3
2 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@ class FileUploader
/** /**
* Define path * Define path
*/ */
$path = $folder->getSlug() . 'FileUploader.php/' . FileSanitizer::clean($file->getClientOriginalName()); $path = $folder->getSlug() . '/' . $folder->getSlug() . '/' . FileSanitizer::clean($file->getClientOriginalName());
/** /**
* Write the file to the filesystem. * Write the file to the filesystem.

View File

@ -683,7 +683,7 @@ class RestateThemeSeeder extends Seeder
$image = Image::make($file_path); $image = Image::make($file_path);
$file = new UploadedFile($file_path, $file = new UploadedFile($file_path,
uniqid() . $image->basename, $image->basename,
$image->mime); $image->mime);
$folders = app(FolderRepositoryInterface::class); $folders = app(FolderRepositoryInterface::class);