Last time I checked, you couldn't set the value of a file field on a form.  The security implications of this are obvious. 
 
There are a several activex/java(not javascript) helpers to overcome this, but they generally aren't really setting the form value, but instad upload the file on their own.
 
It's been a while though, so it may be worth looking further.
 
Jerry
 
----- Original Message -----
Sent: Wednesday, December 12, 2001 5:28 PM
Subject: [IMail Forum] Attachmens issues

Hello all,
I want to be able to attach a file that I am going to read from a form.
In other words, I am getting rid of the file selector window (for security reasons).
What I want to do is to make the document.Sendmail.userfile1.value (the value of the file that is attached in located in sm_js.cgi) set to whatever value I want.
 
ISSUE: When the user wants to attach a file we want this file to be attached ONLY from  the drive a. With an ASP page that runs outside of Imail I can retrieve the file names from the drive a, write them in a form and then.... My problem starts here. How can I pass the values from this generated TEXT form to a FILE form (which is the one that is used to select the file to be attached).
 
Thanks

Reply via email to