Hoping this isn’t a Kirby bug, but more of me just overlooking something obvious in my Blueprints… I have a specific File Blueprint for Hero Images like so:
title: Hero Image accept: mime: image/jpeg, image/png
And then in my Page Blueprint, I have the following reference in my fields:
heroImage: type: files label: Hero Image max: 1 multiple: false required: true layout: cards size: huge image: ratio: 16/9 cover: true uploads: template: hero-image
When I’m in the panel and I click the + Add / Upload option, the computer dialogue pops up and it allows only jpg/png files to be selected, all other file types are disabled / dimmed out which is perfect!
But then if I click the + Add / Select option (or click the empty file field), the Kirby file selection dialogue pops up and I can choose from other files I’ve already uploaded - but any and all file types are selectable, so for example, I can select a video / .mp4 or some other non-accepted image file type.
I understand in the blueprint example above that I have the Upload Property defining what to do when uploading a file, but what about selecting a file?
Hope this makes enough sense (first time posting here).
Thank you all for your help