Hiding the File List

By default, the Upload Applet creates a file list box that is embedded in your HTML page. To make better use of screen space, you may want to hide this file list box by specifying the noFileList parameter, especially if uploading files is an optional piece of information that you are collecting on your form. The file list box can then be displayed in a separate window by associating the FileUpload.select method with a button. Below is an example of how to do this:

<BODY BGCOLOR="#FFFFFF">
<FORM ACTION="upload.asp" 
      onSubmit="return document.FileUpload.submit(document,this,true)">
<INPUT TYPE="text" NAME="Name">
<INPUT TYPE="text" NAME="Phone">
<INPUT TYPE="button" VALUE="Attach Resume" onClick="document.FileUpload.select();">
</FORM>
<APPLET CODE=FileUpload.class ARCHIVE=FileUpload.jar NAME=FileUpload 
        CODEBASE="/AppletFile/classes" WIDTH=2 HEIGHT=2 MAYSCRIPT>
<PARAM NAME="cabbase" VALUE="/AppletFile/classes/FileUploadIE3.cab">
<PARAM NAME="cabinets" VALUE="/AppletFile/classes/FileUpload.cab">
<PARAM NAME="noFileList" VALUE="true">
<PARAM NAME="bgColor" VALUE="#FFFFFF">
</APPLET>
</BODY>

To completely hide the file list you must set the WIDTH and HEIGHT attributes of the APPLET tag to 2 to minimize the space occupied by the Applet and set the bgColor parameter to match the background color of your page.

! Attempting to use WIDTH or HEIGHT values of less than 2 can cause problems with some browsers. In general, it is not possible to completely eliminate the space occupied by applets.