<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2013-02-26 14:42, Glenn Plas wrote :<br>
</div>
<blockquote cite="mid:512CBBD6.5030707@byte-consult.be" type="cite">Hi
Andre, <br>
<blockquote type="cite">
<blockquote type="cite">Ik heb geen probleem met geen enkele
link uit de originele mail. (alle 5 werken) <br>
</blockquote>
I don't have a problem accessing the files but Firefox cannot
display the pictures. <br>
That's because of the server response: <br>
<br>
HTTP/1.1 200 OK <br>
Date: Tue, 26 Feb 2013 13:13:54 GMT <br>
Server: Apache/2.2.22 (Ubuntu) <br>
Last-Modified: Mon, 25 Feb 2013 10:14:46 GMT <br>
ETag:
"29285//misc/pr_material/dutch_flyer_2013_02/gps-screenshot-442.png"
<br>
Accept-Ranges: bytes <br>
Content-Length: 10324 <br>
Keep-Alive: timeout=5, max=100 <br>
Connection: Keep-Alive <br>
Content-Type: application/octet-stream <br>
<br>
It should be <br>
<br>
Content-Type: image/png <br>
<br>
</blockquote>
It should download that image however instead, so it should still
be able to view it albeit not directly. <br>
</blockquote>
Firefox does, of course, propose to store the file or to launch
another application to open it.<br>
But neither is the normal way to view a picture file that the
browser can display itself.<br>
It's the same problem as <img
src="cid:part1.00050205.04010600@gmail.com" alt=""> <a
href="http://cgt.tourismewallonie.be/DownloadHandler.ashx?pg=9e9d7134-fa22-4015-b8d7-768eef2544f2§ion=14d6ebef-9a0b-4b47-8254-d5bc6fcc47f5&file=Itin%c3%a9raires+reconnus+au+1er+janvier+2012.pdf">Itinéraires
touristiques balisés reconnus au 1er janvier 2012 (0,5 MB)</a>
that you can find <a
href="http://cgt.tourismewallonie.be/default.aspx?pg=9e9d7134-fa22-4015-b8d7-768eef2544f2">on
this page</a>.<br>
<ol>
<li>Having to store a PDF file to view it is quite inventive. It's
because the mime type is incorrect. </li>
<li>Moreover, it's useless to put such a hike list in a PDF file
but it should be in a HTML (Web) page that you can import or
copy & paste to an e-mail message, to an excel sheet etc...<br>
</li>
</ol>
<blockquote cite="mid:512CBBD6.5030707@byte-consult.be" type="cite">
It's only normal when you request a single file from SVN http
access that it sends that header.</blockquote>
Definitely not.<br>
SVN or not, Mime type and Content-Type have been designed to
identify file types ans they must be used correctly.<br>
<a
href="http://svn.openstreetmap.org/misc/pr_material/dutch_flyer_2013_02/garmin_62st_empty.png">http://svn.openstreetmap.org/misc/pr_material/dutch_flyer_2013_02/garmin_62st_empty.png</a>
is incorrect<br>
If store the same png file on my private server the same way, the
header contains image/png.<br>
<a href="http://www.papou.byethost9.com/tmp/garmin_62st_empty.png">http://www.papou.byethost9.com/tmp/garmin_62st_empty.png</a>
is correct, and it displays the image<br>
<blockquote cite="mid:512CBBD6.5030707@byte-consult.be" type="cite">
If this png was part of a static html page, it would be sent
correctly. <br>
</blockquote>
No, the server does not know that the file is part of a HTML page.<br>
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.<br>
<blockquote cite="mid:512CBBD6.5030707@byte-consult.be" type="cite">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. <br>
</blockquote>
I would be very unhappy if the persons I'm showing images that way
had to store the files to view them.<br>
They probably would not look at them.<br>
It should be reported as a problem.<br>
<br>
Cheers<br>
<br>
<table>
<tbody>
<tr>
<td valign="top">André.</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<br>
<br>
</body>
</html>