Use the InputFile component to read browser file data into .NET code. The InputFile component renders an HTML <input>
element of type file
. By default, the user selects single files. Add the multiple
attribute to permit the user to upload multiple files at once.
The following InputFile component executes the LoadFiles
method when the OnChange (change
) event occurs. An InputFileChangeEventArgs provides access to the selected file list and details about each file: