Is it possible to use multi file upload with Form support

In the example here - https://ej2.syncfusion.com/javascript/documentation/uploader/form-support , it provides the options for the Form support but the Uploader is set to Single file upload. Is it possible to have the same form support with Multi file upload? 

Thanks

Sri


1 Reply

YS Yohapuja Selvakumaran Syncfusion Team September 12, 2024 12:55 PM UTC

Hi Sri,


Thank you for reaching out to us. We have reviewed your requirement, and we would like to confirm that the form can indeed support multiple file uploads. While the provided example shows single file upload, you can easily extend this to allow multiple file uploads within the same form by setting the multiple property in the uploader.


Code Snippet:


 

var uploadObj = new ej.inputs.Uploader({

  autoUpload: false,

  multiple: true,

  selected: onFileSelect,

});

uploadObj.appendTo('#fileupload');

 

 


Here you can upload multiple files in the single upload, please find the sample below,


Sample: https://stackblitz.com/edit/eezcpx-amrwlu?file=index.js


We have created a sample where the form contains two file uploaders with multi-file upload support, demonstrating how this can be achieved. You can use the same approach to integrate multiple file uploaders in your form. Kindly check out the sample provided below for reference:


Sample:
https://stackblitz.com/edit/hlzg4d-8mrj21?file=index.html,index.js 



Regards,

Yohapuja S


Loader.
Up arrow icon