Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bentut 7 posts 26 karma points
    Mar 05, 2010 @ 22:38
    bentut
    0

    Saving <img> tag in tinyMCE strips jpg extension from src attribute

    I'm having a weird problem when I insert images through the umbraco content editor (tinyMCE - umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657) ).

    The original image tag looks like this

    <img class="subpageImgBorder" src="/media/130013/rita.jpg" alt="rita.jpg" width="280" height="350" rel="," />

    After I click save, the img tag looks like this:

    <img class="subpageImgBorder" src="/media/130013/rita." alt="rita.jpg" width="280" height="350" rel="," />

    Strangely, the generated XML (data/umbraco.config) file uses the correct img string, it's just when tinyMCE loads the node again that the stripped version appears.

     

    I've sort of narrowed it down to a folder/permissions issue. I've noticed when I create folders manually in the windows filesystem, put images in those folders, and refer to them in umbraco content, they are fine. It's only in folders that umbraco creates when new media is uploaded that end up getting stripped when TinyMCE reloads the code. However, me and our company's network admin have both looked at the folders and permissions appear to be identical.

    Has anyone noticed this happening before? Any suggestions for how to fix it?

     

    Thanks!

    Ben....

     

     

     

     

  • bentut 7 posts 26 karma points
    Mar 12, 2010 @ 02:09
    bentut
    0

    bumping this. Anyone able to help?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 12, 2010 @ 12:36
    Douglas Robar
    0

    Never heard of that one before.

    But if it seems to be a file-permission issue then it almost certainly is. As a test, temporarily give full control to everyone for your website. If that resolves it then you've definitely got a file permission problem somewhere. Then tighten up the security. Check out this security script from Chris Houston: http://blog.vizioz.com/2009/10/umbraco-permissions-script-secure.html. It assumes the NETWORK SERVICE user which is used by default at the application pool identity/owner. If your site uses a different user you'd want to update it accordingly (XP and Win2008 R2 don't use NETWORK SERVICE by default, for instance).

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft