1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FileUpload file name Validation

Discussion in 'JavaScript and AJAX' started by prashantSum, Jul 26, 2006.

Thread Status:
Not open for further replies.
  1. prashantSum

    prashantSum New Member

    Joined:
    Oct 24, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Duplicate of [thread=1069]FileUpload file validation through JavaScript[/thread]. Thread closed.

    Please do not post in Article section multiple times as that need Admin approval. Use Queries and discussion section instead
     
Thread Status:
Not open for further replies.

Share This Page