Due to a security "feature" in IE, they have disabled being able to set a file input field via their API. There have been several discussions on this in the mailing list and in the user forums. Please check those out first. There are a couple of solutions to this in the Jiffie plug-in that are fairly well documented.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to set the text of a path into the field for file upload but unable to get it to work, please help.
I have tried several parameters for name value but no luck, I might not be approaching this correctly since the field is in a table?
<jm:ie-set-text-field
functionId="Enter filename to field"
name="file"
value="D:\Tmp1\jameleon-test-suite-3.2.2\jameleon-test-suite\tst3\test1.txt"
form="upload_file"/>
Below is the center frame page info:
<BODY BGCOLOR="silver"><Table width="100%" bgcolor=blue><tr><td><FONT color=yellow size=4><STRONG> Upload By
File</STRONG></EM></FONT></td></tr></table><FORM name="upload_file"onSubmit="" METHOD="post"
ENCTYPE="multipart/form-data"<P><FONT color=midnightblue><STRONG>Upload File</STRONG></FONT></P><TABLE
bgColor=slategray border=2 cellPadding=1 cellSpacing=1 width="70%"><TR><TD><FONT color=white><STRONG>
File1</STRONG></FONT></TD><TD><P><INPUT NAME="file" type=file accept="*.txt"></P></TD></TR><TR><TD><FONT
color=white><STRONG> File2</STRONG></FONT></TD><TD><P><INPUT NAME="file" type=file
accept="*.txt"></P></TD></TR><TR><TD><FONT color=white><STRONG> File3</STRONG></FONT></TD><TD><P><INPUT NAME="file"
type=file accept="*.txt"></P></TD></TR><TR><TD><FONT color=white><STRONG> File4</STRONG></FONT></TD><TD><P><INPUT
NAME="file" type=file accept="*.txt"></P></TD></TR><TR><TD><FONT color=white><STRONG>
File5</STRONG></FONT></TD><TD><P><INPUT NAME="file" type=file accept="*.txt"></P></TD></TR><TR>Upload File</TR><P>
</P><TABLE bgColor=silver border=0 cellPadding=1 cellSpacing=1 width="30%"><TR><TD><INPUT name=submit1 style="HEIGHT:
24px; WIDTH: 250px" type=submit value="Upload "></TD></TR></TABLE></FORM></BODY></HTML>
Thanks.
Due to a security "feature" in IE, they have disabled being able to set a file input field via their API. There have been several discussions on this in the mailing list and in the user forums. Please check those out first. There are a couple of solutions to this in the Jiffie plug-in that are fairly well documented.