I’ve setup my Blueprint as described here: Files section | Kirby CMS
that uploaded files get a Template associated with them. This template is saved in /site/blueprints/files/image.yml
But when uploading an image or a file in the backend the template is not beeing applied. The generated file .txt file for the uploaded file is empty and nothing was written to it. The page on which the File is getting uploaded at has the permissions 777 (for testing purposed only).
Below is my Blueprint file.
title: News
tabs:
content:
label: Content
columns:
left:
width: 2/3
sections:
content:
type: fields
fields:
title:
label: Title
type: text
active:
label: Aktiv
type: toggle
content:
label: Content
type: headline
right:
width: 1/3
sections:
pages:
type: pages
headline: Subpages
files:
type: files
headline: Dateien
template: image
When manually writing “Template: image” into the .txt file the template is correctly beeing applied in the Backend. But for obvious reasons this should be happening on the upload. Not manually for every file ever uploaded