You need to sign in to do that
Don't have an account?
Anthony Pica
URL of image
I have a .png file in a sub-folder. How can I determine the URL of it? I tried referencing http://www.example.com/folder/sub-folder/image.png but I get the following error:
Data Not Available The data you were trying to access could not be found. It may be due to another user deleting the data or a system error. If you know the data is not deleted but cannot access it, please look at our support page.
I have published the site.
So salesforce.com has resolved this but I didn't get an explanation of what the problem was.
Images that are uploaded from this point on are able to be referenced even if they are nested in sub-directories.
Thanks for your help, Laura!
All Answers
Try:
/folder/sub-folder/image.png
You can ascertain the path by going to the assets menu, images sub-menu and referening the Path column.
/LM
Your suggestion of trying "/folder/sub-folder/image.png" doesn't make sense because it is the same URL that I posted.
http://www.example.com/folder/sub-folder/image.png
/folder/sub-folder/image.png
Everything before that would be your siteforce domain:
www.mycompany.com.live.siteforce.com
So you're saying the image URL would be http://www.mycompany.com.live.siteforce.com/folder/sub-folder/image.png ?
That just points back to site.com (even using our domain and our folder names). Still not making sense to me.
Thanks for helping though!
Hi Anthony,
What are you trying to do specifically with the image? Posting that information might help to get a more specific answer from the community.
Good luck!
I simply want to view the image in a browser. I want the URL http://www.example.com/folder/sub-folder/image.png to work properly.
https://xx--sitepreview.na2.force.com/folder/sub-folder/image.png?SiteID=0DM40443300KypT&v=1 works but I want http://www.example.com/folder/sub-folder/image.png to work as well.
If you can confirm that you are able to reference an image in the location of http://www.example.com/folder/sub-folder/image.png on your site, then there is an issue on our site and I'll have to contact support.
Hi Laura, I was wondering if you had a chance to check if that works on your end (my previous reply)?
If anyone else has input on this, feel free to chime in.
Thanks!
Yes, I'm sorry for not getting back to you sooner. Thank you for the clarification, I see what the issue might be that you have. The path does work using the http://www.example.com/folder/sub-folder/image.png as you described. Couple of things to keep in mind: 1) asset is published to that folder 2) URL is case sensitive - make sure that you use capitals where you have them in your folder and asset naming.
/LM
Thanks for checking that for me, appreciate it.
1.) Asset is published. Everything is published.
2.) All text is lowercase.
I have opened a case with salesforce.com - should hear back from them by Monday or Tuesday.
So salesforce.com has resolved this but I didn't get an explanation of what the problem was.
Images that are uploaded from this point on are able to be referenced even if they are nested in sub-directories.
Thanks for your help, Laura!
Hi Anthony,
That's great news!
Sounds like a bug fix, but regardless I'm glad to hear that SFDC was able to get it resolved for you.
Laura