how to check if the file name typed is valid if the input type if file
I have a file upload code. The problem is if I choose a file using the browse functionality, it is fine but if I directly type some file name and press a button which takes this input and tries to upload this file to the server, it kind of hangs.
If there some way to check if the file name mentioned is valid?
<td><input name="txtFiplFile" id="txtFiplFile" type="file" size="30" /> </td>

