UnzipFiles Parameter

 Applet: DownloadClient
 Description:

When UnzipFiles is set to "1" JFile will automatically unzip downloaded zip files.

JFile will extract a downloaded zip file to the location specified by FilenameN. Within this folder, if the zip file contains relative paths, JFile will create the necessary sub-directories, maintaining the original directory structure.

To download multiple zip files to different directories, use multiple FilenameNs and URLNs.

Enabling UnzipFiles allows you to download both zip files and non-zip files.

If a file with the extension .zip is not a valid zip file, it will not be extracted or saved. When this occurs, JFile will send an error message to the Java Console, and proceed to download other specified files.

See also, Zip Download.

 Example:

The following will download and extract file1.zip to c:\temp, and file2.zip to c:\documents.

<PARAM name="UnzipFiles" value="1">
<PARAM name="URL1" value="http://server/file1.zip">
<PARAM name="FileName1" value="c:\temp\file1.zip">
<PARAM name="URL2" value="http://server/file2.zip">
<PARAM name="FileName2" value="c:\documents\file2.zip">