Zip Processor ASP 3 Support Product Page

Answered

Is it simple to set up so it can dynamically create a zip file based on a recordset?

Asked 26 Aug 2014 21:15:22
1
has this question
26 Aug 2014 21:15:22 Steve Skinner posted:
In a system I built for a client, they enter work orders and contractors record the work they do and upload images, and other zip files for the work order. At the end of the process, my client wants to be able to download every file that was uploaded for the work order (a simple recordset) in a single download (zip file).

I didn't see any tutorials or videos for creating zip files to download dynamically, so I was curious. You have showcases that appear to emulate what I'm looking for here, but I wanted to be sure this will be no problem to do with the extension before I buy it. I have no other use for this extension other than this one job, so I just wanted to check first.

Replies

Replied 27 Aug 2014 12:24:21
27 Aug 2014 12:24:21 Teodor Kuduschiev replied:
Hello Steve,
Is what you need to download stored in one folder? In other words - does the "zip whole folder" option working for you?
If not - then you can:
1. List the recordset values as dynamic checkboxes on your page.
2. Use the Form source and zip the files which checkboxes are checked.
Replied 27 Aug 2014 18:37:38
27 Aug 2014 18:37:38 Steve Skinner replied:
Technically yes, all files needing to be downloaded are all in the same folder, but so are all the files for all other work orders too. Using a recordset, it's simple enough to generate a list of files that need to be downloaded for a work order. I just need something like your zip processor to be able to assemble a single download from a recordset of files for a specific work order.

I was originally just going to have one of my programmers custom-code it, but I thought I might be able to make more money on this work if I could find a tool like yours if it could do what I needed.

I like the idea of having a link for "download work order files" which would generate a list of available files, from which they could select the ones they want or a "select all" link. Would the zip processor do it this way and would I know how to create this without a tutorial? I've never worked with zip processor before, but I'm only interested in using it if it makes this really simple. Otherwise, I'll just have it custom-coded and have more control over how it happens.
Replied 28 Aug 2014 09:20:34
28 Aug 2014 09:20:34 Teodor Kuduschiev replied:
It is really easy to setup it. I assume you are using the standard Dreamweaver Server behaviors, as you mention "recordset"?
If yes, all you need to do is:
1. A Recordset with file names/location
2. A form that wraps your repeating structure
3. The following example structure, that you are going to repeat:
<ul>
  <li><input type="checkbox" name="checkbox" id="checkbox[DYNAMIC_ID]" value="[DYNAMIC_FILE_LOCATION_HERE]"> Dynamic filename here </li>
</ul>

The checkboxes should have the same name attribute, but dynamic ids.
4. Apply a repeat region on the <li>
5. Add the zip processor to your page, select zip option: Form, and choose the checkbox name there.
6. Add a submit button, that submits the form. On submit the zip processor will zip and download the selected files.
You can use ANY structure to repeat, ul>li is just an example.
Replied 05 Sep 2014 14:55:06
05 Sep 2014 14:55:06 Steve Skinner replied:
This is awesome. I will definitely be using this info to build it. Thanks!
Replied 19 Dec 2021 17:04:39
19 Dec 2021 17:04:39 Jason Lourens replied:
Why it's worthwhile to look for a mechanical engineering freelance work at https://onlinefreelancejobs.net/mechanical-engineering-job/. You, like any employer, may work whenever it is convenient for you, earn money from the comfort of your own home, and, most importantly, maintain a balance between work and personal life.

Reply to this topic