Skip to content

Commit 9d4dcbe

Browse files
authored
Add SVG mime type to accepted image types
1 parent db87427 commit 9d4dcbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Exports/ZipExports/Models/ZipExportImage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function metadataOnly(): void
3232

3333
public static function validate(ZipValidationHelper $context, array $data): array
3434
{
35-
$acceptedImageTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/webp'];
35+
$acceptedImageTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/webp', 'image/svg+xml'];
3636
$rules = [
3737
'id' => ['nullable', 'int', $context->uniqueIdRule('image')],
3838
'name' => ['required', 'string', 'min:1'],

0 commit comments

Comments
 (0)