|
||||
[Chameleon] Map DownloadRene Teniere TENIERER@gov.ns.caFri, 16 Jan 2004 14:05:14 -0400
|
Bart, OK here goes. I changed the code in the download.phtml section to download the file directly. It seems as though the code is not stripping the http://blah-blah before the actual file name, so it thinks the filename is invalid, and therefore will not download. Anyway, take a look at the code so you can understand what i'm talking about. //download it $save_as = ((isset($http_form_vars['save_as'])) ? $http_form_vars['save_as'] : basename( $file_name )); //make sure file_name is valid if ( stristr($file_name, "http") !== false ) { $file_name = $file_name; -> This is where the problem is coming from, works this way though. } else $file_name = "http://".$_SERVER['HTTP_HOST']."/".$file_name; P.S. I downloaded it as a GIF and it opened fine for me. Rene >>> <tenierer@gov.ns.ca> 2004-01-16 12:20:14 PM >>> Hi Bart, I figure the error must be coming from this portion of the download.phtml file: //download it $save_as = ((isset($http_form_vars['save_as'])) ? $http_form_vars['save_as'] : basename( $file_name )); //make sure file_name is valid if ( stristr($file_name, "http") !== false ) { echo "file name $file_name is not valid"; exit; } else $file_name = "http://".$_SERVER['HTTP_HOST']."/".$file_name; The file name is valid, however, it thinks it is not. I don't know much about php, so hopefully someone can help out. Thanks, RT >>> <bartvde@xs4all.nl> 2004-01-16 12:20:14 PM >>> Hi Rene, when you get the IE download dialog, do you "Open" or "Save" the file? We also have problems with our custom print widget when opening a file, but not when saving it to disk and after that, opening it with an application. Best regards, Bart > Hi all, > > When it comes to downloading the map as opposed to printing it, I get a > dialog error that states: file name > http://10.2.185.9/temp/tmp/4008054281b3d.png is not valid, even > though it is because I copied the link to IE and it showed up. Does > anyone know why It would do this? > > Rene > > Rene J.R. Teniere - BSc., D.GIS > GIS Technician > Nova Scotia Department of Natural Resources > Forestry Division (GIS) - Truro > > Phone: (902) 893-5655 > Mobile: (902) 209-8956 > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |