mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Refs #1064 - Throw a nicer error here
This commit is contained in:
parent
c96cef702c
commit
0a26827abd
@ -293,6 +293,9 @@ class FileUpload extends FormWidgetBase
|
||||
|
||||
try {
|
||||
$uploadedFile = Input::file('file_data');
|
||||
if (!$uploadedFile) {
|
||||
throw new ApplicationException('File missing from request');
|
||||
}
|
||||
|
||||
$validationRules = ['max:'.File::getMaxFilesize()];
|
||||
if ($fileTypes = $this->getAcceptedFileTypes()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user