mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
CreateFolderStructureAction refactoring
This commit is contained in:
@@ -17,7 +17,7 @@ class UploadFileAction
|
||||
public function __construct(
|
||||
public RecordUploadAction $recordUpload,
|
||||
public ProcessImageThumbnailAction $createImageThumbnail,
|
||||
public CreateFolderStructureAction $createFolderStructure,
|
||||
public GetFileParentId $getFileParentId,
|
||||
public MoveFileToExternalStorageAction $moveFileToExternalStorage,
|
||||
) {
|
||||
}
|
||||
@@ -94,7 +94,7 @@ class UploadFileAction
|
||||
return UserFile::create([
|
||||
'mimetype' => get_file_type_from_mimetype($file_mimetype),
|
||||
'type' => get_file_type($file_mimetype),
|
||||
'parent_id' => ($this->createFolderStructure)($request, $user->id),
|
||||
'parent_id' => ($this->getFileParentId)($request, $user->id),
|
||||
'metadata' => $metadata,
|
||||
'name' => $request->input('filename'),
|
||||
'basename' => $fileName,
|
||||
|
||||
Reference in New Issue
Block a user