Alt fix for #1585
This commit is contained in:
parent
f77f412f2f
commit
4db92fa8b5
|
|
@ -255,9 +255,7 @@ class FileUpload extends FormWidgetBase
|
|||
return $value;
|
||||
}, $types);
|
||||
|
||||
$types = implode(',', $types);
|
||||
|
||||
return $types . ',' . strtoupper($types);
|
||||
return implode(',', $types);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ class ServiceProvider extends ModuleServiceProvider
|
|||
* - extensions: png,jpg,txt
|
||||
*/
|
||||
Validator::extend('extensions', function($attribute, $value, $parameters) {
|
||||
$extension = $value->getClientOriginalExtension();
|
||||
$extension = strtolower($value->getClientOriginalExtension());
|
||||
return in_array($extension, $parameters);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue