You can apply to the solution after selection.
var myFiles = document.getElementById('myFileInput');
for(xi=0;xi<myFiles.files.length;xi++)
{
controlThat(myFiles.files[xi].fileName,myFiles.files[xi].mediaType);
}
In the controlThat function, you can check and select which type of file you want to continue, or warn your notifications.
source
share