Image here shows how one can manipulate the browser to choose a different fileI have gone through a tons of questions and answers regarding the similar issue and have found no help so far. The current methods state many method, of which the prominent one is :
<input type="file" id="fileSelect"
accept=".csv,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-excel">
However, this does not solve my issue. The user can still change the type of file to All Files in the browser and choose a different file. I want to know if there is any ways that exist in which I can restrict the user to selecting only excel files.