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:265183
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to