anta
May 18, 2021, 7:19am
1
Hello,
I’m trying to create a block field that allows ‘.obj’ files.
This is my markdown but the panel doesn’t allow me to upload files with such extension.
Is there a way to accomplish that?
obj:
type: files
multiple: false
layout: cards
accept:
extension: obj
label: Object
Don’t know if it’s possible, but you would in any case have to set the accept property in a file blueprint , it’s not a property of the field itself, e.g.
obj:
type: files
multiple: false
layout: cards
uploads: file-blueprint-name
label: Object
file-blueprint-name.yml
title: Whatever
accept:
extension: obj
1 Like