[OSM-talk-be] OSM promo

A.Pirard.Papou A.Pirard.Papou at gmail.com
Tue Feb 26 15:24:24 UTC 2013


On 2013-02-26 14:42, Glenn Plas wrote :
> Hi Andre,
>>> Ik heb geen probleem met geen enkele link uit de originele mail. 
>>> (alle 5 werken)
>> I don't have a problem accessing the files but Firefox cannot display 
>> the pictures.
>> That's because of the server response:
>>
>> HTTP/1.1 200 OK
>> Date: Tue, 26 Feb 2013 13:13:54 GMT
>> Server: Apache/2.2.22 (Ubuntu)
>> Last-Modified: Mon, 25 Feb 2013 10:14:46 GMT
>> ETag: 
>> "29285//misc/pr_material/dutch_flyer_2013_02/gps-screenshot-442.png"
>> Accept-Ranges: bytes
>> Content-Length: 10324
>> Keep-Alive: timeout=5, max=100
>> Connection: Keep-Alive
>> Content-Type: application/octet-stream
>>
>> It should be
>>
>> Content-Type: image/png
>>
> It should download that image however instead, so it should still be 
> able to view it albeit not directly.
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) 
<http://cgt.tourismewallonie.be/DownloadHandler.ashx?pg=9e9d7134-fa22-4015-b8d7-768eef2544f2&section=14d6ebef-9a0b-4b47-8254-d5bc6fcc47f5&file=Itin%c3%a9raires+reconnus+au+1er+janvier+2012.pdf> 
that you can find on this page 
<http://cgt.tourismewallonie.be/default.aspx?pg=9e9d7134-fa22-4015-b8d7-768eef2544f2>.

 1. Having to store a PDF file to view it is quite inventive. It's
    because the mime type is incorrect.
 2. 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...

> 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

André.






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20130226/f8b204ab/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 125 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20130226/f8b204ab/attachment.gif>


More information about the Talk-be mailing list