Images disappearing in forum discussion replies

We've recently started getting a problem when trying to insert images (or other media) into a forum discussion reply.

It works fine for the starting post in a thread, but when any replies are added, any images added using the "insert -> Image/video/file" menu in the RTE disappear when the reply is posted. The image appears in the upload dialog box, and also appears in the reply RTE, but as soon as the reply is posted, the image disappears. Any other content in the reply, such as text, works correctly.

There are no errors reported in the back office, and there are no errors appearing in Dev Tools in the browser.

Has anyone else ever experienced this?

Thanks

Steve

  • Hi  

    I have seen this issue before - I believe it was logged as a Verint bug - here are the details I have on a bug I noticed that seems very similar. Noting that I did observe this issue WAS fixed in Version 13: 

    Issue Name Bug Fix Schedule Steps to Reproduce Issue Bug #
    Issues With Image Resizing/Serving Logic A fix for this bug is scheduled for 13.0. 1. In any RTE in the Community click Insert > Image/ Video
    2. Insert an Image or Video
    3. Leave the Dimensions as Is - Do Not Clear Them Out Before Selecting an Image to Insert
    4. CLick Okay
    4. The Image/ Image Preview is Broken
    TE-17986

        

    I would recommend creating a ticket with Verint support for them to take a deeper look and confirm if this is infact the issue you are seeing. 

  • TE-17986 was fixed and delivered in 12.1.5 and also in 13.x release.    

  • After investigating further I've found that BMP images work correctly.

    I've looked at the source code inserted in the RTE for both BMPs and jpegs/pngs and they are different

    BMP inserts the following code:

    <p><img alt="" src="/cfs-file/__key/communityserver-components-multipleuploadfilemanager/4022bc98_2D00_69a1_2D00_471e_2D00_ab20_2D00_562d3e79dc03-2100-complete/filename.bmp" /></p>

    whilst png/jpeg inserts the following:

    <p><img alt="" src="/resized-image/__size/320x240/__key/communityserver-components-multipleuploadfilemanager/7ea0f2fa_2D00_ab8c_2D00_4e7a_2D00_a3b8_2D00_bc546bdf4ed7-2100-complete/example.png" /></p>

    If I edit the source code in the RTE for a png/jpeg to replace the "/resized-image/__size/320x240/" with "/cfs-file/", it displays the image correctly

    Does anyone know why the files types are treated differently?

    Thanks

    Steve