ASHX Image Extension

ASHX Image Extension

This question is not answered

Trying to get an image to appear in the forums that is loaded via a generic handler (.ashx extension).  Image will not load however.  I believe it's because of HTML sanitizer but I don't see anyway of allowing the extension to pass into the img tag.  Is there a way to manipulate the settings to allow the .ashx extension?

All Replies
  • What version are we talking about and are you using Visual Studio’s Cassini web server or IIS?
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: ckuhlow [mailto:bounce-ckuhlow@communities.telligent.com]
    Sent: Wednesday, April 25, 2012 2:40 PM
    To: bugsandissues@communities.telligent.com
    Subject: [Bugs and Issues - Telligent Community] ASHX Image Extension
     

    Trying to get an image to appear in the forums that is loaded via a generic handler (.ashx extension).  Image will not load however.  I believe it's because of HTML sanitizer but I don't see anyway of allowing the extension to pass into the img tag.  Is there a way to manipulate the settings to allow the .ashx extension?

  • Community 6 and IIS 7. The link to the image I am trying to get into the RTE is below.  I was able to get the preview to appear in the RTE by adding ASHX to the FileViewers area in the CommunityServer.config.  Saving however still strips out the image reference.

    www.amsnow.com/.../snopow0412.ashx

  • Link to the image was truncated.  Should be this:

    http://www.amsnow.com/~/media/Images/Multimedia/Photos/Large%20Photos/photo%20of%20the%20day/snopow0412.ashx?mw=465

  • How exactly are you adding it so I get the click path right.... are you editing html directly or using the insert image on the editor?

  • Via the RTE and the "Insert Image" button.  Using the external image URL tab.  I doesn't work when I try doing it in this forum either.

    This is what you get if you try via the RTE.

    I found if you add the ASHX extension to the FileViewers section in the communityserver.config you can get it to appear in the RTE as a preview.  However when you post it still gets stripped.

    snopow0412.ashx?mw=465