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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -