https://twill.io logo
Hey! having some issues with file uploads for a bl...
# ❓questions
k
Hey! having some issues with file uploads for a block inside a module. Module has the HasFiles trait, Repository has the HandleFiles trait, and ive added the $filesParams property to the model. The content is translate-able, so the form in the block_editor offers me to choose localisations. Im having trouble with actually persisting the localized form data that is sent. i can see that the files are sent as separate localisations, but they arent being saved. Im assuming my
filesParams
are defined incorrectly? Or is it my form fields that are the problem? Form field name is
citadele_pdf
Copy code
php
@formField('files', [
'name' => 'citadele_pdf',
'label' => 'PDF file',
'note' => 'Add one file per language',
'max' => 1
])
Side-question: Is it possible to disable localisation for file uploads inside of a block editor block?