Multiple files upload

5 Oct 20151 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.

NOTE

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.

  1. In the VIEW page, add the below script to configure the UploadBox element.
  • CSHTML
  • // 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.