Allow SVG in image upload

This commit is contained in:
= 2015-01-06 11:40:45 +01:00
parent fa50cf1287
commit ef5e54aa1a
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class FileUpload extends FormWidgetBase
$validationRules = ['max:'.File::getMaxFilesize()];
if ($isImage) {
$validationRules[] = 'mimes:jpg,jpeg,bmp,png,gif';
$validationRules[] = 'mimes:jpg,jpeg,bmp,png,gif,svg';
}
$validation = Validator::make(