mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7785 from open-sausages/pulls/4.0/better-upload-message
BUG Better upload error message
This commit is contained in:
commit
c0085efae6
@ -294,7 +294,8 @@ trait FileUploadReceiver
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($tmpFile['error']) {
|
if ($tmpFile['error']) {
|
||||||
$error = $tmpFile['error'];
|
$this->getUpload()->validate($tmpFile);
|
||||||
|
$error = implode(' ' . PHP_EOL, $this->getUpload()->getErrors());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user