diff --git a/filesystem/Upload.php b/filesystem/Upload.php index b45643a0f..f010757da 100644 --- a/filesystem/Upload.php +++ b/filesystem/Upload.php @@ -162,6 +162,9 @@ class Upload extends Controller { * @return boolean */ public function validate($tmpFile) { + // we don't validate for empty upload fields yet + if(!isset($tmpFile['name']) || empty($tmpFile['name'])) return true; + $pathInfo = pathinfo($tmpFile['name']); // filesize validation if(!$this->isValidSize($tmpFile)) {