Forum

Thread tagged as: Problem, Forms

Multiple file uploads

I have tried adding a file input type with the multiple attribute to allow multiple files to be selected. However only one file is uploaded. Is this attribute not supported?

Martin Elliff

Martin Elliff 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Where are you trying this? Can you show us the code you're using and the result you're getting?

This is what is on an upload.html template page;

<perch:input type="file" id="uploadcv" name="uploadcv" class="form-control" label="Current CV/LPI Capability Map" multiple="multiple" />

Without multiple="multiple" it works fine uploading one file as you would expect. With the multiple="multiple" included it works to a point in that you can select more than one file and the form field says 2 files have been selected, but when it is submitted only one file is uploaded (and included in the forms auto email).

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's not a scenario I've ever tested. I'll look it to look into the next time we work on forms.

Has any progress been made with this since the orignal post ?