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:
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).
Oh, sorry, I setup Your example incorrectly (have added Your heroImage in a section instead of putting it under fields…),
so, then You could add a query instead:
I haven’t tested it with videos, since I never have uploaded videos to a kirby project, but I think it should work since the object exists.
But page.files works definetely =)
(Hope I don’t talk too much nonesense, I’m not a kirby- / php pro, correct me if I’m wrong…)