|
Built into ActiveFile is a fully functioning archive engine that be used to create and manipulate ZIP, TAR, and Stuff-IT archives. Upload Topics
|
|
Creating an
archive on the fly Using the Archive object, you can create an archive and add any number of arbitrary files to the archive. The example below demonstrates how to create a ZIP archive on the fly and download it to the browser.
|
|
Extracting the
contents of an archive If you have an existing archive on your server, you can display the names and sizes of the archived files and extract them to a local or network drive. The example below produces a listing of the contents of a ZIP archive:
The following example extracts a single file from the archive and downloads it to the browser:
|
|
Copying, renaming
and deleting an archive Because archives are simply files stored in the file system, the ActiveFile File object can be used to copy, rename, and delete archives. For more information on manipulating files see Manipulating files and directories. |