1

We are having a LWC file upload component and using that LWC in community page and here is the code

<template>
  <lightning-file-upload
        label="Upload files"
        name="fileUploader"
        accept={acceptedFormats}
        record-id={accountId}
        onuploadfinished={handleUploadFinished}
        multiple>
  </lightning-file-upload>
</template>

After clicking the upload button getting below Javascript error

enter image description here

This issue is happening only in community.

PS:Have enabled the Allow site guest users to upload files under salesforce files in setup

-1

lightning-file-upload is not currently supported in LWR communities, as documented here. You can use it with other community templates though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.