mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
feat: Add support for SVG mime type in file upload
This commit is contained in:
parent
e3c68fdb4c
commit
0f58e16702
@ -5,6 +5,7 @@ enum MimeType {
|
||||
png = "image/png",
|
||||
jpg = "image/jpeg",
|
||||
jpeg = "image/jpeg",
|
||||
svg = "image/svg+xml",
|
||||
|
||||
// TODO add more mime types.
|
||||
}
|
||||
|
@ -514,7 +514,7 @@ const FormField: <T extends GenericObject>(
|
||||
}}
|
||||
mimeTypes={
|
||||
props.field.fieldType === FormFieldSchemaType.ImageFile
|
||||
? [MimeType.png, MimeType.jpeg, MimeType.jpg]
|
||||
? [MimeType.png, MimeType.jpeg, MimeType.jpg, MimeType.svg]
|
||||
: []
|
||||
}
|
||||
dataTestId={props.field.dataTestId}
|
||||
|
Loading…
Reference in New Issue
Block a user