Multiple files upload in EJ 1 ASP.NET MVC UploadBox
5 Oct 2015 / 1 minute to read
The UploadBox widget provides support to upload multiple files spontaneously. The MultipleFilesSelection property enables you to select multiple files while browsing. To achieve this, set the MultipleFilesSelection property to ‘true’. The data type is Boolean.
The Multiple file selection supports all the latest versions of browser except Internet Explorer 9 and its previous versions.
The following steps explain the configuration of MultipleFilesSelection property in UploadBox.
- In the VIEW page, add the below script to configure the UploadBox element.
// In the CSHTML page, add the UploadBox element. @Html.EJ().Uploadbox("uploadbox").SaveUrl("Uploadbox/Save").RemoveUrl("Uploadbox/Remove").MultipleFilesSelection(true)
The following screenshot displays the output.