You need to sign in to do that
Don't have an account?
KenBarlow
Communities - Custom Object - "Can't upload file", ever run into this issue?
I have a custom object that I'm using a lightning:fileUpload with and the moment the file a .png is selected there's a modal displayed that with the error "Can't upload file" could someone help me with this? Below is the code that I'm using:
<lightning:fileUpload label="add attachment" multiple="true" recordId="{!v.recordId}" onuploadfinished="{!c.handleUploadFinished}" accept=".doc, .docx, .pdf, .xls, .xlsx, .csv, .jpg, .png, .heic"/>
Greetings!
Can you please confirm,if you are able to upload any other file type other than .png.
Can you please check the below thread which will resolve the issue.
https://salesforce.stackexchange.com/questions/215244/upload-a-file-using-lightningfileupload-from-a-customer-community-user-licens
Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.
Warm Regards,
Shirisha Pathuri