php - TYPO3 upload multiple files in a frontend form -
i'm using https://github.com/helhum/upload_example create form allow file upload in frontend. works fine single file need upload multiple files.
so here 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 i've added addition attribute "multiple".
when send form 1 file in convertfrom
method of uploadedfilereferenceconverter
class, if i've chosen 3 or 4...
does experimented that? if yes, please :)
thanks,
jérémie
i found problem. had use native "multiple" argument of form.upload viewhelper :
<mr:form.upload property="files" multiple="multiple" 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}"/>
Comments
Post a Comment