Optional. To run .asp sample scripts, create a virtual directory called
JFileSamples and map it to JFile's physical Samples directory:
- Open the Internet Information Services (IIS) explorer.
- Right-click Default Web Site.
- Select New -> Virtual Directory.
- For Alias, enter JFileSamples.
- Browse to JFile's Samples directory.
- Check "Read" and "Run scripts."
- Click "Finish."
Using JFile with Netscape Navigator
The file filetransfer.jar contains the Java Applet for Netscape Navigator. To use the applet in
an HTML page,
- Create an HTML script that uses JFile for uploading or downloading.
- Copy filetransfer.jar to the directory containing the HTML page.
- Reference the HTML page from Netscape 4.7 or higher.
Using JFile with Microsoft Internet Explorer
The file filetransfer.cab contains the Java Applet for Internet Explorer. To use the applet in
an HTML page,
- Create an HTML script that uses JFile for uploading or downloading.
- Copy filetransfer.cab to the directory containing the HTML page.
- Reference this HTML page from Internet Explorer 4.0
or higher.
Using JFile with Microsoft Internet Explorer and MacOS
The file Mac_filetransfer.jar
contains the Java Applet for Mac/Internet Explorer clients. You
will find Mac_filetransfer.jar in the folder MAC_JAR, in JFile's
installation directory.
- Create an HTML script that uses JFile for uploading or downloading. Set the
APPLET tag's codebase attribute to "/MAC_JAR."
- Copy the directory MAC_JAR to the directory containing the HTML page.
The MAC_JAR directory
contains Mac_filetransfer.jar.
- Reference this HTML page from Internet Explorer 4.0
or higher.
Click here to see how to set up the Samples which demonstrate the
use of SoftArtisans JFile
Top
New in Version 2
* New Features in version 2:
- Unlimited size SSL-encrypted transfers from Windows/IE
clients
- Significantly improved support for Macintosh file
transfers
- Ability to compress uploads and decompress
downloads in zip format
- Displays estimated remaining time for uploads
- Supports WinInet transfers for Windows with Internet Explorer
- Supports response redirection with all transfer methods (URLConnection,
sockets, and WinInet)
- New attractive custom file selector, with
customizable icons and text for labels and buttons
- Significantly improved internationalization support, with samples provided
in French and Chinese
- Multiple file extension filters can
be added to the custom file selector
- Uploads can now include an MD5 hash to ensure veracity of the
transfer
- Bug Fix:
JFile no longer generates a Null Pointer Exception on Windows 95/98 when
the user is transferring data using JFile's file/folder selection
dialog (rather than the system's native selection box), and the default
directory is set to "c:\". Note: This exception only
occurred on Windows 95/98.
- Bug Fix:
JFile no longer generates 'Send Error" on IE when
the user is transferring form data with empty values.
Top
Release Notes
Known Issues:
- When using the Applet within the Netscape 4.5 browser under Windows 95 or Windows 98
a refresh problem of the final page may occur. When this happens it appears as though the page has not
finished loading. By clicking on the page the browser refreshes the graphics on the page properly.
- When editing the HTML page in Visual InterDev 6.0
the Applet tag may be transformed into a dot. To view this tag like other
HTML tags right click on the dot and select "Always View as Text".
- File transfers from Mac+IE and Win/Unix/Linux
+Netscape 6.x have certain limitations. Because these client systems
do not support JSObject, form values cannot be submitted, and the response
page needs to be constructed physically and redirected to, rather than the
usual method of streaming the response to the browser.
- With MacOS or Netscape 6.x only sockets tranfer method is available,
which does not support SSL or NTCR authentication.
- On some Java virtual machine clients, JFile's file/folder selection
dialog cannot display the file list if "c:\" is entered. To display the
file list, use "c:" instead of "c:\".
Top
Setting up Sample Code
In order to run the samples, SoftArtisans FileUp or an equivalent
component that can accept RFC1867 type uploads, must
be installed on the machine where the HTTP server resides.
To run JFile's sample scripts, create a virtual directory called
JFileSamples and map it to JFile's physical Samples directory:
- Open the Internet Information Services (IIS) explorer.
- Right-click Default Web Site.
- Select New -> Virtual Directory.
- For Alias, enter JFileSamples.
- Browse to JFile's Samples directory.
- Check "Read" and "Run scripts."
- Click "Finish."
Once setup is completed point the browser to:
http://<machinename>/jfilesamples
Check your JFile installation files
or the SoftArtisans website for the latest documentation
and samples.
Top
Signing Applets
The standard version of SoftArtisans JFile is signed by SoftArtisans, Inc.
In the case of a hidden upload or download, it will display a confirmation dialog
asking the user if he or she agrees to transfer the file.
With the SoftArtisans signed version of JFile, you also received the
unsigned Java classes, allowing you to create an applet with your company signature,
that will not display a transfer confirmation dialog.
SoftArtisans, Inc. disavows all responsibility for
malicious use of the JFile applet to take files from a user's hard disk or to
place files on a user's hard disk without their consent. By signing the applet
with your signature, you assume full responsibility that the applet is used in
an appropriate manner that respects the user's privacy and
integrity.
Step 1: Obtaining a Code Signing Certificate
To sign the applet, you must obtain a Software Developer's Certificate from a Certificate Authority
such as Versign. See http://www.verisign.com/developers/
for the latest information about obtaining a Developer's Certificate.
To create a signed applet for use with Netscape Navigator, you must create a JAR file using a Digital ID
for Netscape Object Signing.
To create a signed applet for use with Microsoft Internet Explorer, you must create a CAB file using
a Digital ID for Microsoft Authenticode.
Step 2: Signing the applet for Netscape Navigator:
If you already have a certificate you must import it into the Netscape browser for the following to work properly.
If you would only like to test the applet you can create a test certificate for Netscape. For more information
on how to do this, see
http://developer.netscape.com/docs/manuals/signedobj/signtool/index.htm
Creating and Signing a JAR
- Download and install the signing tool from
http://developer.netscape.com/docs/manuals/signedobj/signtool/index.htm.
- Open up a command prompt window.
- Go to the ./lib directory (contained in your JFile directory).
- Open and edit the build.bat file, according to your environment.
- At the command line run: build jar.
- The created jar and signed applet will now be in the .\lib\jars directory.
Step 3: Signing the applet for Microsoft Internet Explorer (on non-Mac platforms):
If you already have certificates (.cer and .spc), place them in JFile's \lib\iecert directory.
Creating a Test Certificate for IE
- Download and install the Microsoft Java SDK 3.1 or later from
http://www.microsoft.com/java.
- Open up a command prompt window.
- Go to a temporary directory.
- Run: <Dir where java 3.1 is installed>\bin\packsign\makecert -sk TestKeyName -n "CN=Test Publisher Name" MyTestCert.cer
- Then: <Dir where java 3.1 is installed>\bin\packsign\cert2spc MyTestCert.cer MyTestCert.spc
- Copy these files to JFile's \lib\iecert directory.
For more information about signing and cabs see Microsoft KB Article Q168941 at
http://support.microsoft.com/support/kb/articles/Q168/9/41.asp
Signing the CAB with a timestamp allows the signature on the CAB to stay valid after the
certificate has expired. Our sample shows how to sign the CAB using the Verisign timestamp
service. The machine you are using for signing must be able to access the Verisign site in
order to obtain the timestamp. In our tests, the signcode utility from Microsoft
could not access the Verisign site across a proxy server. It requires a direct connection to
the Internet.
Creating and Signing a CAB
- Download and install the Microsoft Java SDK 3.1 from
http://www.microsoft.com/java.
- Open up a command prompt window.
- Go to JFile's \lib\iecert directory (contained in your JFile directory).
- Open and edit the build.bat file, according to your environment.
- At the command prompt, run: build cab.
- The created cab and signed applet will now be in the .\lib\cabs directory.
Step 4: Signing the applet for Macintosh Internet Explorer:
See the following article for instructions on signing
the jar file for Mac IE:
http://developer.apple.com/technotes/tn/tn1175.html
Copyright ©
2001, SoftArtisans, Inc.