These pages show an example of using csASPZipFile to dynamically create a zip file on the server and stream it to the browser. The user can select files from a list and these will be collected and compressed into a zip archive. This example can be downloaded. You will need the csASPZipFile trial component registered on your server as well as having the scripts that are available below.
Cold Fusion must be running on a Windows platform in order to use csASPZipFile, which is a COM object.
The files available for download are the entire contents of a directory and they are selected by checking the boxes. They are only one line text files and tiny bitmaps and are completely irrelevant, but it is the idea that matters.
This example has been kept simple to make it easier to follow the code. Click here for a description of how it all works. The sample files also contains a description in the Read Me file.
Another possibility not shown here would be to save the zip file temporarily and link to it. The Session ID could be used as the file name and the file could be deleted automatically when the session ended.
© Chestysoft, 2017.