{
name: "logo",
type: "upload",
relationTo: "logos",
filterOptions: {
mimeType: { contains: "image/svg+xml" }
},
required: true
}
Neither SVG images show up in the Admin Panel, nor can I upload new SVGs to the field.
Hi
@105739105802944512- mimeType is looking for an exact match so change
containsto
equalsand this should work for you.
Is there any way to restrict file format to .svg during uploading new file?
Star
Discord
online
Get dedicated engineering support directly from the Payload team.