I have uploaded image using the upload property and everything was working fine. But now when I moved the website to another server the image does not show up on publishing the page. In the Content properties section I see the image is displayed and clicking on it opens up the image.
When I look at the view source the path is ~/media/121212/abc.jpg where as in my other server where the image is displayed the path is /CMS/media/121212/abc.jpg.
I have not done anything other than deploying the website to another server, the structure and everything else is similar to the working server.
Any clue/insight on what might be happening is appreciated.
Are you sure the path to the image starts with "~" ? in the page source? Did you install the second site in a sub-folder, if so is the first site also in a sub-folder?
The folder structure in both the webservers are the same and so is the website set up in the iis. I lloked at the view souce and the image path does start with '~'. Thanks.
Gordon, Thanks for your reply, actually I was playing around with the website and refresing it and everything works great now and I see thew image. I would be much comfortable if I exactly knew what fixed the issue as I would be in a better posititon to fix it if this happens again. But then hey..........for now thing are looking great. Thank you.
What does the path to the image look like now? is it /CMS/media/121212/abc.jpg ? Then it might be because you did a "republish the entire site", which updates the XML cache so it gets the right path and you're able to see the image.
upload property return path
Hi,
I have uploaded image using the upload property and everything was working fine. But now when I moved the website to another server the image does not show up on publishing the page. In the Content properties section I see the image is displayed and clicking on it opens up the image.
When I look at the view source the path is ~/media/121212/abc.jpg where as in my other server where the image is displayed the path is /CMS/media/121212/abc.jpg.
I have not done anything other than deploying the website to another server, the structure and everything else is similar to the working server.
Any clue/insight on what might be happening is appreciated.
Thanks.
Are you sure the path to the image starts with "~" ? in the page source? Did you install the second site in a sub-folder, if so is the first site also in a sub-folder?
The folder structure in both the webservers are the same and so is the website set up in the iis. I lloked at the view souce and the image path does start with '~'. Thanks.
Gordon, Thanks for your reply, actually I was playing around with the website and refresing it and everything works great now and I see thew image. I would be much comfortable if I exactly knew what fixed the issue as I would be in a better posititon to fix it if this happens again. But then hey..........for now thing are looking great. Thank you.
Hi Umbracov
What does the path to the image look like now? is it /CMS/media/121212/abc.jpg ? Then it might be because you did a "republish the entire site", which updates the XML cache so it gets the right path and you're able to see the image.
/Jan
is working on a reply...