On 2013-02-26 14:42, Glenn Plas wrote :
Hi Andre,Firefox does, of course, propose to store the file or to launch another application to open it. But neither is the normal way to view a picture file that the browser can display itself. It's the same problem as Itinéraires touristiques balisés reconnus au 1er janvier 2012 (0,5 MB) that you can find on this page.
It's only normal when you request a single file from SVN http access that it sends that header.Definitely not. SVN or not, Mime type and Content-Type have been designed to identify file types ans they must be used correctly. http://svn.openstreetmap.org/misc/pr_material/dutch_flyer_2013_02/garmin_62st_empty.png is incorrect If store the same png file on my private server the same way, the header contains image/png. http://www.papou.byethost9.com/tmp/garmin_62st_empty.png is correct, and it displays the image If this png was part of a static html page, it would be sent correctly.No, the server does not know that the file is part of a HTML page. What happens is that if the broser is decoding an <image ...> tag or a tag that contains a mime type, it knows that it's an image or the specified mime type overrides that of the HTTP header. It's due to the fact that we're downloading it from SVN http. I don't expect SVN to build me an html page.I would be very unhappy if the persons I'm showing images that way had to store the files to view them. They probably would not look at them. It should be reported as a problem. Cheers
|
_______________________________________________ Talk-be mailing list Talk-be@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-be