function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KenBarlowKenBarlow 

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"/>

 
ShirishaShirisha (Salesforce Developers) 
Hi,

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