Skip to content

Commit 42235c5

Browse files
committed
fix upload empty error
1 parent 643cbb3 commit 42235c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/UploadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function uploadValidator()
6767
$is_valid = false;
6868

6969
$file = Input::file('upload');
70-
if (!$file) {
70+
if (empty($file)) {
7171
throw new \Exception(Lang::get('laravel-filemanager::lfm.error-file-empty'));
7272
}
7373
if (!$file instanceof UploadedFile) {

0 commit comments

Comments
 (0)