When the Can Attach Files option is enabled for the Case Comments Publisher component in an Experience Cloud Site, users may receive the following error when attempting to upload a file or attachment:
We couldn't upload the selected file.
The case comment is successfully added, but the file or attachment is not attached to the case. This error occurs when a feature, configuration, or permission is blocking the file upload process.
To resolve this error, first determine whether the issue affects internal users as well. This helps narrow down whether the block is org-wide (such as file storage limits) or specific to Experience Cloud user permissions.
If internal users are also seeing this error in the Experience Cloud Site, try to have the user upload a file to the same case record internally from within the org to see if a more detailed error message is present.
For example, if you are testing this functionality in a Developer org or sandbox, it is possible the environment's File Storage has been exceeded and is currently blocking file uploads. Attempting to attach a file to the same case internally may provide a more detailed error: "Your organization is using all its file storage, so you can't add new files. Contact your administrator and ask them to purchase more storage."
If this issue is only occurring for external or Experience Cloud Site users, it is not possible to try uploading a file to the case internally for a more detailed error message.
Administrators should review the setup for Limit Files in Your Community and the org's Configure File Upload and Download Security Settings to determine whether these settings are blocking file or attachment uploads for Experience Cloud users.
The only standard permission requirement to attach a file using the Case Comments Publisher is for the user to have Edit access to the corresponding case record. Verify the following:
If the Experience Cloud Site user has appropriate Edit access to the case object and record, set up Debug Logging for the Experience Cloud Site user, replicate the issue, then review the resulting logs to determine if customizations such as content triggers are blocking the file upload process.
Note: The Case Comments Publisher can only upload files as Attachment records and not as Salesforce Files — this applies regardless of whether the "Files are uploaded as Salesforce Files and not as Attachments" setting is enabled.
000380121

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.