| Using JFile's FormName parameter, you can submit a form with
your upload. We will script an upload with form elements. Using the
parameter UseAppletInBrowser, we will embed the JFile
UploadClient within the form. The script posts the upload to a server-side ASP (Active Server Pages) script that uses SoftArtisans FileUp to process the upload. |
|
<FORM name="JFileForm"> <TABLE> <tr> <td align="right">JFile Applet</td> <td> <APPLET codebase="/JFileScripts" code="softartisans.filetransfer.UploadClient.class" height="235" width="215" mayscript archive="filetransfer.jar" name="fileupload"> <!-- The Cabbase parameter specifies the cab file containing the applet. --> <PARAM name="cabbase" value="filetransfer.cab"> <!-- The PostURL parameter specifies the URL to which the file will be posted. --> <PARAM name="PostURL" value="http://localhost/jfilescripts/formresp.asp"> <!-- The FileName# parameter specifies a file to transfer. When uploading more than one file, use "FileName1," "FileName2," etc. --> <PARAM name="FileName1" value="c:\boot.ini"> <!-- When the parameter UseAppletInBrowser is set to 1, JFile will display the applet within the browser window, rather than in a pop-up window. --> <PARAM name="UseAppletInBrowser" value="1"> <!-- JFile will transfer the form assigned to the FormName parameter. --> <PARAM name="FormName" value="JFileForm"> </APPLET> </td> </tr> <tr> <td align="right">First Name</td> <td align="left"><input type="text" name="firstname" size="10"></td> </tr> <tr> <td align="right">Last Name</td> <td align="left"><input type=vtext" name="lastname" size="10"></td> </tr> </TABLE> </FORM>
| Previous Page | Next Page |