I'm using the https://github.com/helhum/upload_example to create a form that allow file upload in frontend. It works fine with single file but I would need to upload multiple files.
So here is my form field :
<mr:form.upload property="files" id="publication-files-{contentUid}" class="file"
data="{loading-text: '{f:translate(key: \'uploading\', extensionName: extKey)}', max-file-size: maxFileSize}"
additionalAttributes="{autocomplete: 'off', accept: settings.allowedFiles, multiple: 'multiple'}"/>
Note that I've added the addition attribute "multiple".
When I send the form I always get 1 file in the convertFrom
method of the UploadedFileReferenceConverter
class, even if I've chosen 3 or 4...
Does someone already experimented that? If yes, please help :)
Thanks,
Jérémie