Hi
Is it possible to limit the imagehandler - getimage.ashx - to only effect certain filtetypes - eg. only .jpg?
/Hans
Hi
Is it possible to limit the imagehandler - getimage.ashx - to only effect certain filtetypes - eg. only .jpg?
/Hans
Hi Hans,
You can do that checking is the string ends with jpg or not. Example:
var filepath = GetString("...");
var imgSrc = filepath;
if (filepath.EndsWith(".jpg") {
imgSrc = "/admin/public/GetImage.ashx..." + filepath;
}
Best Regards,
Nuno Aguiar
Hi Nuno
Thanx for your reply. Yes, that is ofcourse possible.
Thank you.
You must be logged in to post in the forum