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 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .