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).
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…)