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
Zach CaudleZach Caudle 

REST API File Size Limitation and Content Type

I understand from the documentation that REST API's are limited to files < 2GB in size. 

https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_files.htm

However, according to the insert blob data documetation this is actually limited to < 50MB of text data and even less at 37.5 for base-64 encoded data when using non-multipart content types, where ideally we would ideally like to simply post json bodies.

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm

Without having to explicitly test files that approach limits, can I be confident in saying that these limits hold true for custom REST API's as well, or can custom API's handle the larger file size limitations under non-multipart content types. I just want to make sure I know explicit limits instead of having to test breaking points manually. 

Nagendra Ananda 17Nagendra Ananda 17
Hi - Were you able to get limitations for custom API for file upload, if yes can you please post.

Thanks