Merge pull request #7785 from open-sausages/pulls/4.0/better-upload-message

BUG Better upload error message
This commit is contained in:
Chris Joe 2018-01-24 10:37:47 +13:00 committed by GitHub
commit c0085efae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,8 @@ trait FileUploadReceiver
}
if ($tmpFile['error']) {
$error = $tmpFile['error'];
$this->getUpload()->validate($tmpFile);
$error = implode(' ' . PHP_EOL, $this->getUpload()->getErrors());
return null;
}