mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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']) {
|
if ($tmpFile['error']) {
|
||||||
$error = $tmpFile['error'];
|
$this->getUpload()->validate($tmpFile);
|
||||||
|
$error = implode(' ' . PHP_EOL, $this->getUpload()->getErrors());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user