[fusion-commits] r2194 - sandbox/jxlib-3.0/layers/MapServer/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Jul 28 11:31:25 EDT 2010
Author: madair
Date: 2010-07-28 15:31:25 +0000 (Wed, 28 Jul 2010)
New Revision: 2194
Modified:
sandbox/jxlib-3.0/layers/MapServer/php/SelectionCSV.php
Log:
add content-disposition header so that user is prompted to save or open the file with CSV program
Modified: sandbox/jxlib-3.0/layers/MapServer/php/SelectionCSV.php
===================================================================
--- sandbox/jxlib-3.0/layers/MapServer/php/SelectionCSV.php 2010-07-26 18:31:46 UTC (rev 2193)
+++ sandbox/jxlib-3.0/layers/MapServer/php/SelectionCSV.php 2010-07-28 15:31:25 UTC (rev 2194)
@@ -34,7 +34,8 @@
include('../../../common/php/Utilities.php');
include ("Utilities.php");
-header('Content-type: text/plain');
+header('Content-disposition: attachment; filename=selection.csv');
+header('Content-type: text/csv');
if (isset($_SESSION['maps']) && isset($_SESSION['maps'][$mapName])) {
$oMap = ms_newMapObj($_SESSION['maps'][$mapName]);
More information about the fusion-commits
mailing list