Hey.
I have the problem that the panel won’t allow me to upload a json file into my gallery.
In the frontend, it will be displayed as an animated svg.
I already had an Issue with these files. You can view it here – How to integrate Lottie SVG Animations?
I tried accept
in the blueprint for field type: files
If no type restrictions (
extension
,mime
ortype
) are defined in the file blueprint, Kirby will limit the accepted uploads to the typesimage
,document
,archive
,audio
andvideo
by default.
Since json is neither of those. I would go with accept: true
to allow all files. But that makes not difference at all. Do I use it wrong?
sections:
gallery:
label: Select files..
type: files
accept: true
size: smale
info: "{{ file.dimensions }}"
layout: cards
template: caseImage
image:
ratio: 1/1
back: white