Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew Waegel 126 posts 126 karma points
    Jan 25, 2011 @ 20:45
    Andrew Waegel
    0

    custom content-type from /base ?

    Hello,

    I'd like a /base method to return image data from the database. I have the I/O worked out, but can't seem to change the MIME-type of the /base page. I'm trying this:

    HttpContext.Current.Response.ContentType = "image/gif";

    Is it even possible to change this for /base pages?

    Thanks,

    - Andrew

  • jc 64 posts 101 karma points
    Jan 25, 2011 @ 21:09
    jc
    0

    The Response.ContentType is being set in ~\umbraco\presentation\umbracobase\baseHttpModule.cs

    It doesn't look like you can override that out of the box.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies