You need to sign in to do that
Don't have an account?
Raghu Nani
Attachment Image not displaying on VF page for guest user
we have public site where images are loading from attachment
<img id="theImage" src="{!URLFOR($Action.Attachment.Download, attachment.id)}"/>
this will work only guest user has VIEWALL access to relevant Object(ObjectName: Logo)associated with Attachment
I want to achieve this functionality without VIEWALL access only by granting read access because in winter21 salesforce removing the VIEWALL access to guest user.
I verified the owd LOGO Object is Public Read/Write for Internal & External access.
I verified there is no Parent object on LOGO object.
I verified, Attachment Id is appearing in VF page but logo is not displaying
Any Idea how to fix.
<img id="theImage" src="{!URLFOR($Action.Attachment.Download, attachment.id)}"/>
this will work only guest user has VIEWALL access to relevant Object(ObjectName: Logo)associated with Attachment
I want to achieve this functionality without VIEWALL access only by granting read access because in winter21 salesforce removing the VIEWALL access to guest user.
I verified the owd LOGO Object is Public Read/Write for Internal & External access.
I verified there is no Parent object on LOGO object.
I verified, Attachment Id is appearing in VF page but logo is not displaying
Any Idea how to fix.
The overall recommendation and best practice is to address “Read” and “Create” needs with the permissions on the Guest User Profile, record read visibility via Guest User Sharing Rules, and Edits by Apex methods residing in classes running in without sharing mode.
Check below reference
https://www.learnexperiencecloud.com/s/article/Guest-User-Record-Access-Development-Best-Practices
https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_networks_entity_input_field_update_228.htm
Thanks,