I was using a File Upload functionality in ASP.NET .If the users are using the Browse button shown next to the textbox and selecting the required file then there is no issue about the file getting upload.
But instead if they are directly typing the file name in the textbox instead of using the Browse button then I should be able to check if really the file exist in the client machine.
Please note that I am NOT trying to check if the file exist in ther Server, I want some function that would let me check in the local machine of the user whether the file exist or not.
if somebody as an idea it would be of great help to me.
You shouldn’t have to care if the file was specified using the Browse button or via the text input, because this is handled by the browser itself (the rendering of the input type file is not the same across the different browsers).
Instead, you shoud check if a file was posted by the browser using the
property of the FileUpload ASP.NET Control.