File Upload without HTMLInputFile Control

I need to be able to upload file from a clients machine to the

server using Servlet. I will always know the source location

and simply need to copy 1 file from the directory to the server.

The HTMLInputFile Control always allows user to "browse" to select the file.

Is thr any method to Upload File without requiring the user to browse?

I m using oreilly package for uploading file to server.

Thank you in advance.

[461 byte] By [sumit.manhasa] at [2007-11-26 21:33:16]
# 1

HTML input type "file" is not only a file selector, but an extension of protocol. Instead why dont you try like this?

1. Hide the HTML input file.

2. When you click upload button, the content of visible textbox( in which

you enter/copy file path) will be copied into HTML input file. Do some scripting work..

3. Then form is submitted.

4. In server you can process file through HTML input file, which is hidden.

baskarpra at 2007-7-10 3:13:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I have tried this this <input type="file" name="filename" size="50" value="C:\LAN.log">its not working, any one knows some way for it !!!
sumit.manhasa at 2007-7-10 3:13:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...