I’m updating a GRAV website right now to 1.7 and stumbled upon a problem with uploading images via admin.
Our page blueprint looks something like this:
fileupload: type: file label: Bild hochladen destination: 'page@:/media' multiple: false avoid_overwriting: true accept: - 'image/*' - 'video/*' - '.pdf' header.image: label: Bild auswählen type: filepicker folder: 'page@:/media' preview_images: true
So we used the
file field to upload images through admin and save those images in a folder called
media and select the uploaded images by using
But with 1.7
type: file does not work anymore with page blueprints and the documentation recommends to use
type: pagemedia Reference: Blueprint Form Fields | Grav Documentation
Is this by any means possible to upload images in GRAV 1.7 via admin and store them in a specific page folder?
type: pagemedia is not documented at all…