The Zip Processor provides industry-standard Zip archive
functionality. It is designed to be easy to use. You can pack/unpack a
file or folder without a single line of code. If you need to create or
extract Zip files automatically, this extension is for you. Combined
with Pure ASP Upload 3,
your users can upload Zip files directly! Use form fields to allow the
user to select his/her own files to be compressed in a new zip file for
direct download. You can even Zip a complete folder to, for example,
create a backup of your site.
You don't need to write any additional code or install server components; only ASP and ASP.NET are required on your server.
Zip Processor 3.0 Manual
The Basics: Upload a Zip File with Pure ASP Upload and Extract it on the Server
Introduction
In this tutorial we will explain how to automatically extract a zip file on the server, after uploading it.
How to do it
1. Define your site in Dreamweaver and
Create a new page
Define your site in Dreamweaver and choose the
option to create an ASP page. You can read more about this at this page.
You should open a new page in Dreamweaver or use an existing one.
2. Create a Pure Upload 3 File Field
Create a form, add a file field and add the
Pure Upload ASP 3 Server Behavior to the file field. Make sure you have the
proper access rights on the server to be able to upload files. Add a submit
button.
3. Select the
Server Behavior
Add the Zip Processor 3.0 server behavior.
4. Set the Zip Processor 3.0 Options
After selecting the Zip Processor 3.0 Server Behavior the Zip Processor 3.0
popup appears.
Leave the default Name that is used to identify the behavior. Leave the Path
type at Relative to allow relative paths. Use an Absolute path
if your server doesn't support relative paths (some new servers don't allow
relative paths).
Select the Pure Upload as our Source and set it to *** All
Files as we want to upload all of the files in the form.
Select the Unzip action to extract the files after they are uploaded. Optionally
you can check the Use zip filename as subfolder option to put the zip in
a subfolder that has the same name as the zip (without the filename extension).
If you have the proper access rights, you can also delete the zip file by
checking the Delete zip file after extraction option. We leave these
options unchecked.
Select the Destination for the zipped file, make sure you have the
proper access rights on your server. We check the Overwrite option to
overwrite zip files with the same name. We set the Allowed Files at All (you
can restrict the files that are to be extracted by type by using the dropdown,
if you set it to Customize… you can use the Extensions field to specify
the file type).
Press OK to apply your settings.
5. Save and done
Save your page and upload it to your server, and
you are done! Go to your website and test it - you should be able to upload any
file.