I am using Struts2 to upload multiple files:
<s:file name="files" multiple="multiple" />
When I select multiple files it displays the number of files, eg. 3 files.
The project requirements are that the user should be able to see what files he selected before uploading.
Is it possible to display the selected files names in a list or maybe in the control itself ?
You can use the HTML5
files
property of the<input type="file" />
element like follows: