Guest users are unable to upload a file in a community when "Reassign new records created by guest users to the default owner" is enabled for ContentV
Last updated 2020-02-11 ·Reference W-7135215 ·Reported By 14 users
When a guest community user attempts to upload a file in a community, the new setting causes the file upload to error out when guest users do not have access to the default owner's user record.
- Guest user receives a can't upload file error.
- Guest user is able to upload files.
1)Have the following settings configured:
a)Setup -> Salesforce Files -> General Settings -> "Allow site guest users to upload files" = enable
b)Have a LEX community with Builder -> Settings -> General -> Public Access -> "Public can access the community" = enabled
c)Community Preferences -> Let guest users see other members of this community = disabled
d)Setup > Communities Settings > "Reassign new records created by guest users to the default owner" = enabled
e)Community guest user profile -> 'View All Users' = disabled
2)Create a lightning component to upload file as below and place it in an object that guest user can access.
3)Go to the community page with guest user context and upload a file.
4)Observe error 'Can't upload file' and file is not uploaded.
<aura:attribute name="recordId" type="String" />
<h3>Aura Lightning Component</h3>
<lightning:fileUpload label="Attach receipt"
accept=".pdf, .png, .txt"
- Temporarily disable "Reassign new records created by guest users to the default owner"
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.