{
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 @Morkvitnir - mimeType is looking for an exact match so change
containsto
equalsand this should work for you.
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.