|
When a user click's the upload applet's "Add Files/Directory" button, a file selection window will open. JFile allows you to display either the system's native file selection dialog, or JFile's platform-neutral file selector. JFile's file selector includes several text parameters that enable customization of all of the text displayed in the selection window. This allows you to change the language displayed in the file selector. By default, JFile displays the system's native file selection dialog. To use JFile's file selector, set UseNativeFileSelection to 0. Use JFile's file selector parameters to customize the file selection window. |
|||
File Selector Parameters
|
|
||
<APPLET codebase="/JFileScripts" code="softartisans.filetransfer.UploadClient.class" height="0" width="0" 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"> <!-- Setting UseNativeFileSelection to 0 enables JFile's file selector. --> <param name="UseNativeFileSelection" value="0"> <!-- The file selector text parameters allow you to change all of the text displayed in the file selection window. --> <param name="CustomFileSelectorTitleText" value="Select files/folders to upload"> <param name="LabelLookInText" value="Search"> <param name="ButtonChangeDirText" value="Apply"> <param name="LabelUploadTypeSelectorText" value="Upload Type"> <param name="ChoicesFilesOnlyText" value="File"> <param name="ChoiceFilesAndDirsText" value="File and directory"> <param name="ChoiceFilesAndDirsRecText" value="File and recursive directory"> <param name="LabelExtenstionSelectorText" value="File Types"> <param name="LabelAdditionalFilterText" value="Filter"> <param name="ButtonRefilterText" value="Apply"> <param name="ButtonCancelText" value="Quit"> <param name="ButtonDoneText" value="Apply"> </APPLET>
<PARAM name="UseAppletInBrowser" value=1>If you do not set UseAppletInBrowser to 1, that is, if you display the applet in a separate window, set Height and Width to 0.
| Previous Page | Next Page |