Hello!
I have a “publication page” which in it the client needs to upload a cover image and also a PDF of the publication. The cover image and the PDF are both “type: files”. The .yml file goes like this:
columns:
- width: 1/3
sections:
image:
type: files
max: 2
layout: cards
image:
ratio: 4/5
cover: true
- width: 2/3
sections:
information:
type: fields
fields:
title:
label: Title of book
type: text
publisher:
label: Publish by
type: text
medium:
label: Langauge, number of pages and size
type: text
ISBN:
label: ISBN
type: text
pdf:
label: upload PDF
type: files
max: 2
For some reason, when the client upload a PDF file it is previewed in the place where the cover image is previewed. if the cover image is uploaded too so it is placed beneath it.
It doesn’t really make a difference but it does make a confusion - because if the client uploads a PDF it seems like he uploaded a cover image. Here is a screenshot of the panel:
Would appreciate any help. thanks a lot!