Hi,
I am using a file blueprint to set some options for uploaded images. It looks like this:
/blueprints/files/image.yml
title: Image
accept: image/*
create:
width: 2880
Nothing complicated, just a resize on upload and restricting files to images only. This is the relevant field in my image block:
mhd-image.yml
fields:
image:
type: files
multiple: false
label: Image
template: image
uploads: image
size: full
layout: cards
empty: Select or upload an image
When I add an image the template is being applied, it is being resized, all that good stuff.
The issue I am having is when the image is clicked on in the panel, below the file info the following warning is displayed:
This file has no blueprint yet. You can define the setup in /site/blueprints/files/image.yml
Now if I add a field to the image.yml file blueprint this goes away, but I don’t need any in this case. And I don’t want the warning displayed to an editor as it looks like something has gone wrong.
Is it a requirement to have a field in a file blueprint? Or is there some way I can stop this warning appearing?