Copied to clipboard

Flag this post as spam?

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


  • Marlon Ducille 1 post 21 karma points
    Nov 05, 2014 @ 17:59
    Marlon Ducille
    0

    Image is not displaying

    After upgrading Umbraco to to version 6.1.6, some of my images are not displaying on my website. I have noticed though, that some of the images have dot in their name, e.g. C5.2_int-care-hospital.png. Whenever I go into the Media section in umbraco, select on an image, then go into Properties, and change the nameto say C5_2_int-care-hospital.png (removing the dot) it works. There are lots of images to repeat this for. I was wondering if there is a way, a setting somewhere, that will allow me to cater for these images.

     

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 05, 2014 @ 18:44
    Jan Skovgaard
    0

    Hi Marlon and welcome to our :)

    I took the liberty to place your question in the "bugs" forum since it's not really related to XSLT.

    Do you have any idea about how many images that you need to go over to make the change mentioned above? Which version did you upgrade from?

    I suspect that you might need to use the API to automate the renaming task somehow though. You should be able to make use of this I suppose http://our.umbraco.org/documentation/Reference/Management-v6/Models/Media or perhaps using the media service http://our.umbraco.org/documentation/Reference/Management-v6/Models/MediaType - I think it would be a matter of starting from the media root and then loop through each media and rename it from . to _ if it has a dot in the file name before the file extension.

    I'm not a backend developer myself so I'm not sure I can provide any sample code for achieving it :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft