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
Case: Gallery - Receiving A Zip File from a Selection of Images
Introduction
In this tutorial we will explain how you can select any set of files from a gallery to be automatically zipped and downloaded.
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. Creating the Gallery
Create a form field and add a submit button. Add
a table with images on the page (you can also use a CSS based layout) and we
add a checkbox and titles below them. Give each checkbox the same name (checkbox).
Set the Checked value to the name of the image we want to include in our
zip file before it is offered as a download.
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 a new 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 Form as our Source.
Select the Zip option to zip the files selected by the user. We set the Filename to Your_Images. We leave the Additional File empty as we don't
want to include any extra files. We leave the Move Files To Zip unchecked
as we'd like to keep the original files on the server. We check the Download
Zip option to offer the zip as a download after the user selected his
files.
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. The users can now select the
images they want to download.