i want to restrict user from selecting files from select dialog other than .xml extensions.
i have code like below,
<input type='file' accept='.xml' onChange={handleselectedfile}/>
Now with this user can still change from .xml to All files and select the file.
How can i make sure or restrict user from selecting files other than .xml extension types.
could someone help me with this. thanks.