You are here:
Limit Files in Your Experience Cloud Site
Restrict the size and types of files that your members can upload. This list of file types lets you control what your members upload and also prevents spammers from polluting your Experience Cloud site with inappropriate files.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
| User Permissions Needed | |
|---|---|
| To limit files: | Manage Experiences OR Create and Set Up Experiences AND Is a member of the Experience Cloud site |
File moderation must be enabled for your org before you can limit files in your Experience Cloud site. If you don’t see the option to limit files in Experience Workspaces, contact Salesforce.
Your file limits apply to files uploaded by members anywhere in the site—in posts and comments, directly in the Files tab, and from the Salesforce mobile app. You can also set file limits using SOAP or Metadata API.
Files uploaded before setting your file limits are unaffected. However, newer versions of those files must meet the limits you specify.
Keep the following things in mind:
- A file must meet the file limits set in the Experience Cloud site in which it’s uploaded. For example, if a customer uploads a file on a case and then an agent uploads a newer version in your Salesforce internal org, the limits from the customer site still apply.
- Files uploaded in your internal Salesforce org that are shared in a site aren’t subject to site file limits.
- Open Experience Workspaces.
-
Select Administration | Preferences, then enter your limits in the Files section on the page.
- Maximum file size in MB—Enter a number between 3 MB and your org’s maximum file size. To use the default limit of 2 GB, leave this field empty or enter 0.
- Allow only these file types—Enter file extensions separated with a comma (for example: jpg,docx,txt). You can enter lowercase and uppercase letters. You can enter up to 1,000 characters. To allow all file types, leave this field empty.
- Click Save.
After you set your file limits, members receive an error message if their file is larger than the size you set or if their file extension isn’t allowed.
When a member tries to upload multiple files at once and a file is found that doesn’t meet your limits, none of the files are uploaded.

