I am having difficulties using lightning-file-upload in LWR using the guest user.
I have already enabled the options in Salesforce files > Settings
I have already enabled it in the community for users to see the "Allow users to view asset files, library files, and CMS content available to the site (To allow guest users to view CMS collections, also enable Allow guest users to access public APIs)"
But nothing works, the error that comes back to me is this
Thank you in advance for your attention.
LWC.html <lightning-file-upload label="Anexe o arquivo aqui..." name="fileUploader" accept={acceptedFormats} onuploadfinished={handleUploadFinished}> </lightning-file-upload> LWC.js handleUploadFinished(event) { // Get the list of uploaded files const uploadedFiles = event.detail.files; this.idDoc = uploadedFiles[0].documentId; this.caminho += uploadedFiles[0].name; console.log('CAMINHO => ' + this.caminho); console.log('ID => ' + this.idDoc); } 


