[Mono-dev] xsp + jpeg's

Joe Audette joe_audette at yahoo.com
Thu Dec 8 08:40:52 EST 2005


I don't use xsp by itself but with mod_mono so this
may not help if you are using xsp by itself but the
technique I use is to make mono the handler for the
directory using SetHandler but over-ride that for
certain file types using a FilesMatch directive and
setting the handler for these file types to None so
that apache is responsible for serving them. You can
see the syntax in the example Virtual Host file I
posted in my blog.
http://www.joeaudette.com/BlogView.aspx?pageid=101&ItemID=205&mid=104&pageindex=

Hope it helps,

Joe

--- Mark Gallop <mark.gallop at gmail.com> wrote:

> Hello All,
> 
> I am trying to display jpeg images using xsp and
> mono 1.1.10 (I have
> also tried previous versions) unfortuneately it only
> works if the file
> extension is "jpeg". If it is "jpg" the browser
> wants to download, not
> display. 
> 
> This only occurs when loading the image on its own,
> eg
> http://127.0.0.1:8080/image.jpg. Other file types,
> like txt/mov/avi,
> display correctly.
> 
> Is this a issue with mime types? Any help would be
> appreciated.
> 
> Cheers,
> Mark
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
>
http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


joe_audette [at] yahoo dotcom
http://www.joeaudette.com
http://www.mojoportal.com



More information about the Mono-devel-list mailing list