Results 1 to 3 of 3

Thread: Check if a file exists on the client

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Check if a file exists on the client

    Hey there

    I'm doing a web app in vb.net / asp.net and I need the client to upload a picture to the server. I'm using the HTMLInputbox of type file to upload the file (this is the typical way to do it right?).

    Now in case the client enters in any arb letters into the input box and clicks upload, I want to first check if that file exists on the clients PC. Can I do this? The File.Exists(Path) function checks on the server and not on the client.

    help!

    Thanks
    Patch

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Re: Check if a file exists on the client


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: Check if a file exists on the client

    Thanks

    Yeah they just use a try catch block. I suppose I could just do that and display a general error message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width