mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
uploader fix
This commit is contained in:
parent
3e17b9cd34
commit
9f0c7326d3
@ -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.
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user