Steve, IIRC I had problems with this method. Firstly the zip file was made in a subdirectory off the users personal tmp dir of the files causing a loop ( which I could probably get around -but looking ugly) but also I think the directory name was included in the files within the zip.
Thanks for the reply... Sean "Steve Onnis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Cant you just zip the directory instead of creating a file list? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Seano > Sent: Friday, July 22, 2005 4:43 PM > To: CFAussie Mailing List > Subject: [cfaussie] Re: Server Errors > > > Rod > I'll give it a whirl since you've had good experience with it.. > Cheers > Sean > > <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Here is a cfx tag I wrote to handle compression, Im even still using it on > > some production sites. It uses buffered streams to handle io and has a > > try/catch around the part where the files are added to the zipfile. Try > > this and see if it helps in any way. cfx tags can be quite difficult to > > debug at times. Without seeing the jcompress code it could be any sort of > > exception causing your problem really. > > > > Just call it like cfx_jcompress, compression attribute is optional (0-9). > > > > <cfx_jzip filelist="" zipfile="" compression="" debug> > > > > hth > > Rod > > > > > Rod, sorry I accidentally took it off line.... > > > > > > Character length would be .. bloody hell...I think I am getting your > > > drift..... > > > 750files x ( 36 chr pathname + 17 chr filename) > > > ..that's 40k characters! > > > > > > Here is the call.. > > > > > > <!--- Make up a filelist to zip ---> > > > <cfdirectory > > > DIRECTORY="#application.temp_dir##session.mm_username#/#scratchdir#" > > > NAME="mydirectory" > > > ACTION="list" > > > FILTER="*.*" > > > > > > > <cfset filelist=""> > > > > > > <!--- Turn query into list adding filepath ---> > > > <cfloop query="mydirectory" > > > > <cfset filelist = Listappend(filelist, > > > > "#application.temp_dir##session.mm_username#/#scratchdir#/#mydirectory.name# > > > ")> > > > </cfloop> > > > > > > <!--- Zip or catch error ---> > > > <cftry> > > > <cfx_jcompress > > > ACTION="NEW" > > > FILEIN="#filelist#" > > > > > > > FILEOUT="#application.temp_dir##session.mm_username#/#scratchdir#/zip/#filen > > > amer#download.zip" > > > > > > > <cfcatch type="any"> > > > <script>document.all.status.innerHTML = "<font > > > color='red'>Compression interrupted....</font>";</script> > > > </cfcatch> > > > </cftry> > > > > > > Cheers > > > Sean > > > > > > From: <[EMAIL PROTECTED]> > > > To: "Sean O'Halloran" <[EMAIL PROTECTED]> > > > Subject: Re: Server Errors > > > Date: Friday, 22 July 2005 1:19 PM > > > > > > So the call to the cfx contains a long list of file names? What > character > > > length is the list? Can you show me the call to the cfx? > > > > > >> Thanks again Rod, > > >> > > >> > > >> Passing files names: Yes, a delimited list. The chosen files are thrown > > >> into > > >> a tmp directory and the list generated from a directory listing. Not > > >> advisable? > > >> > > >> I/O errors: Missing files are usually trapped before hand using the dir > > >> listing. No locks on the file as they are uniquely copied for each user > > >> into > > >> their own tmp dir each time. > > >> > > >> I will turn on debug in the cfx, didn't realise it had it! Debugging on > > >> the > > >> cfserver doesn't catch anything. > > >> > > >> Much appreciate your replies.... > > >> > > >> Sean > > > > > > > > > > > > --- > > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > > > To unsubscribe send a blank email to > > > [EMAIL PROTECTED] > > > Aussie Macromedia Developers: http://lists.daemon.com.au/ > > > > > > > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > > > > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
