I am trying to create a download for my KMZ file. This works fine in both Firefox and Chrome but not IE (9, 10, or 11). Here is my code:
function kmz_export($result){
header_remove();
// .... create file
$zip = new ZipFile();
$zip->addFile($kml, $title . '.kml');
header('Content-Type: "application/vnd.google-earth.kmz+xml"');
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=". $title .".kmz");
header("Content-Transfer-Encoding: binary");
echo $zip->file();
exit();
}
On the other hand, if I change the content type to applicaiton/PDF and the title to .PDF, it downloads fine (but cant be opened as its not really a pdf file). Any help would be greate!
thanks jason