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
This issue is happening only in community.
PS:Have enabled the Allow site guest users to upload files under salesforce files in setup