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.
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
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
is working on a reply...