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
Scott H.Scott H. 

Can Community public users be allowed to upload files?

Hi,

I've got a lightning component that is being used in a Community.
This is meant to be a public facing community/component, where anonymous users essentially fill out a form.

Part of the flow includes uploading files.
Currently the files are being uploaded using <lightning:fileUpload/> and are being associated with an Account object.

When used by a person who already has a logged in session (such as through the builder) it works fine. However a guest user isn't able to upload files.

Is there any way to set the auto generated guest user or guest profile to be able to upload files?
I've tried doing some research on this already, and it seems like its more pointing towards no, but I was hoping if anyone else could provide insight.

Thanks,
Scott

Raj VakatiRaj Vakati
Lightning file upload will support  Lightning, Console, Communities, Mobile, Lightning Out experience 

https://developer.salesforce.com/docs/component-library/bundle/lightning:fileUpload/example
Scott H.Scott H.
That link doesn't really help Raj. We have a fileUpload already working, its just that unauthenticated guest users are specifically unable to upload files.
Prashant Pandey07Prashant Pandey07
Hi Scott,

I think it's not possible for guest users to upload a file to the portal. Check the file upload limit.

https://help.salesforce.com/articleView?id=vpm_designer_elements_screen_fileupload.htm&type=5

--
Thanks,
Prashant
 
Arno PollaertArno Pollaert
Hi Scott

You can use the setting 'Allow site guest Users to upload files'. 

Home --> General Settings --> 'Allow site guest Users to upload files'


 
William FrazierWilliam Frazier
Yes, but the setting no longer works. Support has no solution and says maybe do a VF page with sharing. https://salesforce.stackexchange.com/questions/222577/what-are-permissions-are-needed-to-upload-a-file-via-a-public-salesforce-communi
JoyAnn FisherJoyAnn Fisher
I am in the same boat. I enabled the option "Allow site guest Users to upload files" but I dont see where I can allow this. Under the Guest Users 'settings' (from within the form in Builder) there is not the same checkbox as for Authenticated users. I also dont see a Component available... hoping someone else can help? 
Vijay sai Mahajan 11Vijay sai Mahajan 11
I have a site where lightning file upload is used but iam unable to upload documents. Allow site users to upload files is enabled