PDA

Click to See Complete Forum and Search --> : Check if a file exists on the client


Patch21
Dec 14th, 2004, 08:59 AM
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

veryjonny
Dec 14th, 2004, 09:29 AM
I guess, this link would help,


http://www.4guysfromrolla.com/webtech/091201-1.shtml

Patch21
Dec 14th, 2004, 10:29 AM
Thanks

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