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
|
* @param FileRepositoryInterface $files
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Factory $validator,
|
Factory $validator,
|
||||||
FileRotator $rotator,
|
FileRotator $rotator,
|
||||||
FilesystemManager $manager,
|
FilesystemManager $manager,
|
||||||
FileRepositoryInterface $files
|
FileRepositoryInterface $files
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -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