I’m setting up a “files” section on a Kirby site, where users can upload files with different mime types from the panel. They are rendered on the site using snippets:
As mentioned I’m setting up the Panel to accept all kinds of files, which would ideally all have a different blueprint depending on the file type. There’s currently a master blueprint for all files uploaded. Can the panel blueprint automatically detect the file type? Or, if I set up different file blueprints and have the file section accept them, will it automatically detect which blueprint to use?
…ok nevermind, looks like I can just set up a file blueprint for each type and then list the different file blueprints(image.yml, pdf.yml etc) in accept on the “files page” blueprint
When I upload a file, I want it to have a certain blueprint depending on its file type (i.e an image has the option to add alt text, or a pdf will have the option of adding a description, something like that). I think this is solved, I will use hooks to assign a blueprint on file upload if there’s not another way to achieve this