We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bd9fb1 + dadd8be commit e453250Copy full SHA for e453250
src/controllers/UploadController.php
@@ -39,13 +39,13 @@ public function upload()
39
return $this->errors;
40
}
41
42
- if (!$this->proceedSingleUpload($file)) {
+ $filename = $this->proceedSingleUpload($file);
43
+ if ($filename === false) {
44
45
46
47
// upload via ckeditor 'Upload' tab
- $new_filename = $this->getNewName($file);
48
- return $this->useFile($new_filename);
+ return $this->useFile($filename);
49
50
51
@@ -97,7 +97,7 @@ private function proceedSingleUpload($file)
97
// TODO should be "FileWasUploaded"
98
event(new ImageWasUploaded(realpath($new_file_path)));
99
100
- return true;
+ return $new_filename;
101
102
103
private function fileIsValid($file)
0 commit comments