As far as I know, there is no possibility to only allow a specific file type in the blueprint file settings
It could look somehow like this:
files:
type: image
As far as I know, there is no possibility to only allow a specific file type in the blueprint file settings
It could look somehow like this:
files:
type: image
I tried to include it: https://github.com/distantnative/panel/commit/a3752085145e2e1d97c481da805ca7ac8dff8580
If you and others could check if this actually works as intended (little testing on my side did), we’d see if it’s actually a way to implement it. Which then @bastianallgeier could decide upon (or maybe we’ll figure out the checkUpload method isn’t the right place to do it)
EDIT: just realized that it would prob be useful to be able to specify more than 1 type. that would need a lil different take
Now with multiple types supported: https://github.com/distantnative/panel/commit/8013cf87773f518168081f347dfb964bbc1f9b1f
So this works:
files:
type: document
and this as well:
files:
type:
- image
- video
The supported types can be found here: http://getkirby.com/docs/cheatsheet/file/type