You need to sign in to do that
Don't have an account?
MedhanieHabte
Unable to get image to display in Insecure Remote Site Trailhead
Hi all, I am working on the Insecure Remote Site Trailhead and can't seem to get the image to display from a static resource zip file.
I am using this as my code
Are there any steps I should take, hope it helps.
I am using this as my code
<apex:image url="{!URLFOR($Resource.Challenge_Resources,'Challenge_resources/Castle.png')}" />
Are there any steps I should take, hope it helps.
As per the above code snippet. It looks like you have a static resource added into your dev org called "Challenge_Resources". This zip contains folder called "Challenge_resources" which contains the image. castle.png.
Please ensure that the zip indeed contains the folder as specified. If the image is directly under the zip file the syntax would be
2.In quick find box on left top enter static resources.
3.click on static resources and click new
4.name should be "Challenge_Resources"
5.upload image it can be of any name
then make following changes in your code as told below
use <apex:image url="{!URLFOR($Resource.Challenge_Resources)}" />
remove <apex:image url="{!URLFOR($Resource.Challenge_Resources,'/Castle.png')}" />.
It will work fine
regards:
shaik rizwan ahmed
Mark is as best answer
Thanks,
Vishnu