mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
uploader fix
This commit is contained in:
parent
3e17b9cd34
commit
9f0c7326d3
@ -64,9 +64,9 @@ class FileUploader
|
||||
* @param FileRepositoryInterface $files
|
||||
*/
|
||||
public function __construct(
|
||||
Factory $validator,
|
||||
FileRotator $rotator,
|
||||
FilesystemManager $manager,
|
||||
Factory $validator,
|
||||
FileRotator $rotator,
|
||||
FilesystemManager $manager,
|
||||
FileRepositoryInterface $files
|
||||
)
|
||||
{
|
||||
@ -121,7 +121,7 @@ class FileUploader
|
||||
/**
|
||||
* 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.
|
||||
|
||||
@ -683,7 +683,7 @@ class RestateThemeSeeder extends Seeder
|
||||
$image = Image::make($file_path);
|
||||
|
||||
$file = new UploadedFile($file_path,
|
||||
uniqid() . $image->basename,
|
||||
$image->basename,
|
||||
$image->mime);
|
||||
|
||||
$folders = app(FolderRepositoryInterface::class);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user