Skip to content

Commit 0f0cf0a

Browse files
authored
Add SVG mime type to image validation rules
1 parent 9d4dcbe commit 0f0cf0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected function logActivity(string $type, string|Loggable $detail = ''): void
163163
*/
164164
protected function getImageValidationRules(): array
165165
{
166-
return ['image_extension', 'mimes:jpeg,png,gif,webp', 'max:' . (config('app.upload_limit') * 1000)];
166+
return ['image_extension', 'mimes:jpeg,png,gif,webp,svg+xml', 'max:' . (config('app.upload_limit') * 1000)];
167167
}
168168

169169
/**

0 commit comments

Comments
 (0)