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
Advanced: Creating User Specific Zip Files
Introduction
In this tutorial we will explain how to add comments dynamically.
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 an entry field and 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.
Go to the Application -> Bindings panel and press the + and select Request
Variable.
Select Request.Form and enter the name of your input field (in our case
Username).
Press OK.
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 select
the lightning bolt icon to the right of the Filename field to create a
dynamic filename.
Choose Data sources, select the form field and press OK.
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.
If you haven't selected the Download Zip option, you have to set the Destination to where the zip file needs to be created, we set it to the upload folder
as this has the proper access rights.
Leave the Go To field empty as we don't want to be redirected to another
page after the file is uploaded.
Click on the Advanced tab and select the lightning bolt next to the Comment field.
Add text around the dynamically generated text. And press OK to apply
your settings.
Optionally you can add a Password to your zip file by entering it in the
Password field.
Press OK to apply the 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.