Hi all,
i got a really big problem with the ZIP.cfc:
We create a ZIP with different files which can be selected and stored in a
session. After selecting all files you can select "Download your ZIP file". But
we have different results on different servers:
W2k3:
The ZIP file contains only the selected files, everything is OK
Sun:
The ZIP file contains a complete folder structure, f.e.:
/test/sub01/sub02/sub03/file.type
This is really strange, here you can find some code:
#####################################################################################
<cfloop query = "DocumentInfo">
<cfset dummy=ArrayAppend(DocumentsWithPath,
ExpandPath("files/"&DocumentInfo.FILENAME)) />
</cfloop>
<cfloop query = "imageinfo">
<cfset dummy=ArrayAppend(DocumentsWithPath,
"/test/sub01/sub02/sub03/"&imageinfo.SOURCEIMAGE) />
</cfloop>
<cfset DocumentsWithPathList = ArrayToList(DocumentsWithPath, ",")>
<cfset zipFile=createobject("component","#application.packagepath#.farcry.zip")
/>
<cfset zipFile.createZip("#DocumentsWithPathList#",
ExpandPath("/test/sub01/sub02/sub03/downloadzip/#session.sessionid#.zip")) />
<cfset isZipped=true />
<cfset session.documentorder=StructNew() />
<cfset session.documentorder.orders=ArrayNew(1) />
<cfset session.documentorder.zipfile="#session.sessionid#.zip" />
#####################################################################################
Now, when i download the file it contains the descriped folder structure
(/test/sub01/sub02/sub03/file.type).
Do you got any idea? I dont understand it :(
Best regards
nic.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301554
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4