Can't upload SVG in block

Hi,

I have this message when I try to uplaod a svg in layout block image : The file could not be uploaded

I change kirby/config/blocks/image/image.yml (to be sure it’s a yml problem) like this :

name: field.blocks.image.name
icon: image
preview: image
accept: true

fields:
  image:
    label: field.blocks.image.name
    type: files
    query: model.images
    multiple: false
    image:
      back: black
    uploads:
      template: blocks/image

But it’s the same problem.
I can put my SVG in the folder and it’s work, but I need an easy upload.

Config : Kirby 3.6.5 + Php 8.0.17 and Apache :slight_smile:

OK it’s was an SVG problem…
This one is OK :

<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="300" height="200">
  <title>Exemple simple de figure SVG</title>
  <desc>
    Cette figure est constituée d'un rectangle,
    d'un segment de droite et d'un cercle.
  </desc>
 
  <rect width="100" height="80" x="0" y="70" fill="green" />
  <line x1="5" y1="5" x2="250" y2="95" stroke="red" />
  <circle cx="90" cy="80" r="50" fill="blue" />
  <text x="180" y="60">Un texte</text>
</svg>

My SVG was from Adobe to PDF to Affinity so I svgomg-it and it’s OK.