FileManager

This commit is contained in:
Kevin Adametz 2020-03-07 19:45:39 +01:00
parent c8948338bb
commit f1e0900a7a
131 changed files with 5844 additions and 3081 deletions

View file

@ -313,11 +313,13 @@ class LfmPath
// Upload section
public function upload($file)
{
$this->uploadValidator($file);
$error = $this->uploadValidator($file);
if($error !== 'pass'){
return false;
}
$new_file_name = $this->getNewName($file);
$new_file_path = $this->setName($new_file_name)->path('absolute');
$working_folder_id = $this->getModelParentFolderId();
//event(new ImageIsUploading($new_file_path));
@ -339,7 +341,6 @@ class LfmPath
]);
// TODO should be "FileWasUploaded"
// event(new ImageWasUploaded($new_file_path));
return $new_file_name;
}