cfzip I need to pause page processing until the zip file is complete, suggestions?
I am creating zip files using cfzip and it is basically zipping up some high rez images. So after the cfzip code I have the following
<cfset TheFileName = "#ReReplace(GetImage.ItemNum, " ", "-", "ALL")#.zip">
<cfheader name="Content-disposition" value="attachment;filename=#TheFileName#">
<cfcontent type="application/zip, application/x-zip, application/x-zip-compressed, application/octet-stream, application/x-compress, application/x-compressed, multipart/x-zip" file="#APPLICATION.ProductImageDirectory#\full-brands\#TheFileName#">
The problem I am having is it starts the download of the zip file before it is finished so it downloads a corrupt zip file each time. The zip file on the server is fine. Any idea how I can get the page execution to pause until the zip file is actually finished being created?
