You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Martin Holmes <mh...@uvic.ca> on 2007/08/24 19:50:54 UTC

Odd image problem

Hi folks,

Using Cocoon 2.1.10, with this matcher in my sitemap:

<map:match pattern="**images/*.jpg">
   <map:read mime-type="image/jpeg" src="images/{2}.jpg"/>
</map:match>

When I access the URL of one of the images in Firefox, it downloads the 
image to my temp directory and opens it from there (so the URL bar shows 
file:///[temp_folder]...). When I access it through IE7, it shows me the 
image directly from the server (so the address bar shows http://...).

Can anyone suggest why this might be happening? It's as if the server 
isn't telling the browser what the mime type is properly, so Firefox is 
downloading the file and opening it locally.

Cheers,
Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Odd image problem

Posted by Daniel Brüßler <in...@danielbruessler.de>.
Hello Martin,

is everything OK (entries and file-rights) with the file mime.types
in cocoon-2.1.10/org/apache/cocoon/util ?

And does ist work when you add this attribute to the "map:read" - tag:
type="image"

kind regards
Daniel Brüßler


Martin Holmes schrieb:
> Hi folks,
> 
> Using Cocoon 2.1.10, with this matcher in my sitemap:
> 
> <map:match pattern="**images/*.jpg">
>   <map:read mime-type="image/jpeg" src="images/{2}.jpg"/>
> </map:match>
> 
> When I access the URL of one of the images in Firefox, it downloads the
> image to my temp directory and opens it from there (so the URL bar shows
> file:///[temp_folder]...). When I access it through IE7, it shows me the
> image directly from the server (so the address bar shows http://...).
> 
> Can anyone suggest why this might be happening? It's as if the server
> isn't telling the browser what the mime type is properly, so Firefox is
> downloading the file and opening it locally.
> 
> Cheers,
> Martin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
-- 
Hallo ,

Viele Grüße
Daniel
:: 0911 - 475 36 16
:: http://patchworking.de internet-solutions
:: Daniel Brüßler - Emilienstr. 10 - 90489 Nürnberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org