mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Better upload error message
Fixes https://github.com/silverstripe/silverstripe-asset-admin/issues/720
This commit is contained in:
parent
7603c6d798
commit
b44273d1d6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user