I might have missed something but what I read was straight FTP uploads that CF will have nothing to do with. If so, you could get them to upload checksums as well... but I guess, even then, that the checksum could be created using a corrupt zip file in the first place. The only thing you can do (to be positive) is test the file like you said with cfx_zip or java and try to catch any errors. If there were errors, then the file is either corrupt, incomplete, or not a zip.
-----Original Message----- From: Snake [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:50 PM To: CF-Talk Subject: RE: How to determine if zipfile has been fully uploaded by FTP? The file will not exist in the destination folder until it has fully uploaded as CF moves the file from the TEMP folder to the destination. So in that case you only need to use fileExists(). I presume your dealing with the files via another process, otherwise you wouldn't need to test if the file has uploade dyet, as you would simply process it after the cffile upload completes. Youc ould always store the filenames into the database afte rthe upload completes, and have your other process check the database for new files. Russ -----Original Message----- From: David [mailto:[EMAIL PROTECTED] Sent: 28 December 2006 02:19 To: CF-Talk Subject: How to determine if zipfile has been fully uploaded by FTP? Hi all, I have a question about testing a zipfile in CF. We currently have a client's application that lets them use CFFile via a form to upload a zip file to process, then unzips and imports etc, one file at a time. We now want to allow user to FTP (or other ways) as many zipfiles as they want, and CF will check which are fully uploaded, and process them. It's CF7 Standard, so directory watcher gateway isn't an option. FTP uploads using the same name (no temp name while it's on the way), so we need to tell if it's complete. (BTW, does the directorywatcher gateway fire only on complete files?) My thinking is to test the zipfile; if any errors, not fully uploaded so ignore. Would this throw an error in the FTP upload, or should that be safe? One way is to use CFX_Zip's Test action. Short of that, is there a way using java.util.zip (maybe starting with Massimo Foti's tmt_zip.cfc) to test the zipfile? Found code to enumerate the entries (shouldn't be more than 2 in this case), but how to test each included file without trying to extract? Thanks, - David ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265190 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

