Using a form to sending a file without prompting for the file name?

by "David Clapper" <dclapper(at)clioassociates.com>

 Date:  Tue, 8 May 2001 07:40:32 -0700
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original

Hello all,

One of my clients needs to send a userid, password, and specific
file contents from the user's workstation to a form processor
supplied by someone else.

The URL below, and the associated HTML, shows the way we're thinking
about doing this. 

The point at issue is, the HTML as shown prompts the user to
choose the file.  However, the name of the file is known to us,
so we want to avoid the prompt and just send the file when "Submit"
is clicked.  How can we do that?

TIA ...
---------------------------------
The relevant page is at: http://www.clioassociates.com/og/rich.htm

The HTML for the page is:
<html> 
<head><title>JSP Page</title></head> 
<body> 
 
<form enctype='multipart/form-data' name='file' method='post'
action='EasiTargetImport.jsp'> 
<input type='hidden' name=username value=EasiTarget> 
<input type='hidden' name=password value=xxxx> 
Select a file <input type='File' name='fileName'> 
<input type='submit'> 

</form> 
</body> 
</html> 


David Clapper

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA