function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lakshman.mattilakshman.matti 

Unable upload images in Rich text field in site.

Hi All,

I am getting an error "/apex/Unauthorized" while attaching an image in Rich text box in a Public site. It is working fine in a VF page inside salesforce but not working in a public site. Please help me on this.

Thanks
Lakshman
Deepak GulianDeepak Gulian
lakshman.mattilakshman.matti
Hi Deepak,
Thanks for the reply.
In my case i have given all the permission for fields. page is getting loaded sucessfully. but when i tried to upload image in RTF field.im getting the error.
when i click on image pic on RTF field it pops up a window to upload pics. when i select pic from local folder and click on upload button site is getting refreshed. and im getting the above error in debug logs.

Thanks
Lakshman
 
jieves@kyrobros.comjieves@kyrobros.com
Lakshman, did you ever find a workaround for this?  I'm getting the same error.  I think it is an issue with site guest user not having access to "_ui/common/request/servlet/RtaImageUploadServlet".  I don't know of any way to allow site guest user access to that servlet.