Click to See Complete Forum and Search --> : Does file exist


petsounds
09-29-2006, 10:45 AM
Ok, Im sorry, I know this has been asked before but here goes... Im knew enough to JSP by the way so take it easy on me :)

I have a Browse button on my JSP page, the user clicks the browse button and selects a file, the path of the file goes in to the text box associated with the Browse button.

The user can also type the path to a file (e.g. C:\file1.txt). What I want to do is check whether this file exists on the users machine.

Is this possible? If so, how?

Thanks very much for your help.

Tommy

Khalid Ali
09-29-2006, 04:02 PM
not unless you use some other aiding tech such as applets or active x controls (which are not recomended at all).
Force ur users to use the browse button, that way they will always upload a real file

petsounds
10-02-2006, 04:34 AM
not unless you use some other aiding tech such as applets or active x controls (which are not recomended at all).
Force ur users to use the browse button, that way they will always upload a real file

Ok thanks...

Is there anyway of making the text box readonly for <input type=file..... ?