Looking for best REST API to upload a file to a record with at least file size 100MB?
I have created custom REST API handles POST call, inserts both ContentVersion, ContentDocumentLink records (Base 64 content in request body) manually. But using custom API not able to upload(not able to test) file size more than 23 MB.
other way using with standard salesforce REST API, (/services/data/v35.0/chatter/feed-elements)issue is, It's not supporting Base 64 binary data conversion to normal format..
But in salesforce developer guide docs, mentioned that file size limit to upload REST API is 2 GB. (Copied same lines, links from the articles).
“maximum file size for uploads is 2 GB for ContentVersion objects”, “To upload a binary file up to 2 GB (including headers) ”, “Salesforce CRM Content Content and Libraries tabs in Salesforce Classic 2 GB 2 GB (including headers) when uploaded via Chatter REST API 2 GB (including headers) when uploaded via REST API ”
Let us know if you worked on the requirement “Upload file to record using REST API (file size should support atleast 100 MB)”