FileUpload file name Validation

prashantSum's Avatar
Hi All,
When we try to upload file through <input type ='file' />, it does not check whether the file really exists on the local file system, even if we give some arbitrary value like 'C:\asdf', it will upload it with 'asdf' as file name with no content.

So is there any way to check on the client side with java script (I think we can do it with ActiveX Control but I want to know whether is it possible through JavaScript) whether the file really exists on the client side local system, so that if it is not present I can stop sending the request to the server.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Duplicate of FileUpload file validation through JavaScript. Thread closed.

Please do not post in Article section multiple times as that need Admin approval. Use Queries and discussion section instead