Enable zip file downloading from query results

Delfos, Jacob Jacob.Delfos at MAUNSELL.COM
Thu Oct 12 20:29:38 PDT 2006


Hi Xiaopeng,
 
There is a file from "Catalist Creative" on their website, which does
that:
 
http://www.catalistcreative.com/tools/zipfile.php.txt
 
I have used it a fair bit for this purpose. You basically have to modify
it to point to the right files. If you use it, please make the following
change, otherwise you will run into problems if you try to open the
zip-file straight from Internet Explorer:
 
Before the lines that say "Header ("Content ........", put another line
that says:
 
Header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
 
 
regards,
 
Jacob
 
 


________________________________

	From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong
	Sent: 13 October 2006 09:19
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: [UMN_MAPSERVER-USERS] Enable zip file downloading from
query results
	
	
	
	Hello List,
	 
	 
	I am very new to this field. I apologize if this question is not
related but I do appreciate any suggestions.
	 
	I have one index that can be queried using mapserver. The query
results are like follows:
	 
	Record   |     UL_X      |  FileLink
	1                456000        http://myweb.com/photo/15.tif
	2                460000        http://myweb.com/photo/38.tif
	3                464000        http://myweb.com/photo/41.tif
	 
	Now what I want to realize is to provide an additional
"Download_All" button in the query result page.
	Then when the user clicks the "Download_All" button, all the
files in "FileLink" will be compressed online 
	into one (e.g., .zip) file and downloaded.
	 
	How can this be realized? I'll apprecate any help or some
reference to read.
	 
	Thank you.
	 
	 
	Best,
	Xiaopeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061013/a279a438/attachment.htm>


More information about the MapServer-users mailing list