What is the maximum size of files/attachment can be created under an object record in salesforce by an external system? As per documentation its 2 GB for files and 25 MB for attachments.


Will it be same when an external system trying to create files/attachment in salesforce using salesforce REST API https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_list.htm#inserting_a_contentversion

1 Answer 1


Yes, those limits are globally applied. Note that some APIs will have a lower limit, such as a ContentVersion created by SOAP (which will be limited to about 37MB because of the 50MB payload limit), but using specified APIs, such as creating a ContentVersion using REST API with form/multipart will support 2GB file sizes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.