Only allow SVG as file type I want to have an asset field which only allows .svgs.
To be more specific, I want to upload icons I can later import in my templates via the svg() command. Is this possible without any plugins or a custom field?
You can achieve this using the extraFileKinds config setting like this:
'extraFileKinds' =&gt; [
    'svg' =&gt; [
        'label' =&gt; 'SVG',
        'extensions' =&gt; ['svg'],
    ],
],

On your Asset field, check the &quot;Restrict allowed file types?&quot; checkbox, and select &quot;SVG&quot; from the list.