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

Parents
  • 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

Reply
  • 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

Children
No Data