Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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.
is working on a reply...