Mercurial > hg > LGMap
comparison php/download.php @ 15:f17f43f0a63f
bug fixed: download error for data from LGDataverse
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Fri, 30 Oct 2015 16:47:15 +0100 |
| parents | 389cf726303e |
| children |
comparison
equal
deleted
inserted
replaced
| 14:4151de159dbe | 15:f17f43f0a63f |
|---|---|
| 26 $filesize = strlen($file); | 26 $filesize = strlen($file); |
| 27 | 27 |
| 28 $mime = array('application/octet-stream'); | 28 $mime = array('application/octet-stream'); |
| 29 | 29 |
| 30 header('Content-Type: '.$mime); | 30 header('Content-Type: '.$mime); |
| 31 header('Content-Disposition: attachment; filename="test.kml"'); | 31 header('Content-Disposition: attachment; filename="download.kml"'); |
| 32 header('Content-Transfer-Encoding: binary'); | 32 header('Content-Transfer-Encoding: binary'); |
| 33 header('Content-Length: '.sprintf('%d', $filesize)); | 33 header('Content-Length: '.sprintf('%d', $filesize)); |
| 34 header('Expires: 0'); | 34 header('Expires: 0'); |
| 35 | 35 |
| 36 // check for IE only headers | 36 // check for IE only headers |
