I do not believe that you can set a limit on the number of files with a built-in attribute, just a few or not, for example: <input type="file" multiple="true">
You can use javascript on the interface to limit the number and check on the server.
I would suggest that the files are listed in alphabetical order, the exact order probably depends on the system.
source share