I have a use case to upload a file (size > 50MB) to Salesforce. As Salesforce snappack supports file upload upto 50MB file so to upload file of size more than 50MB we need to use multipart form data request.
One part of request should be non-binary data and other part is binary data (file content) like below:
Content-Disposition: form-data; name=“entity_content”;
“ContentDocumentId” : “069D00000000so2”,
“ReasonForChange” : “Marketing materials updated”,
“PathOnClient” : “Q1 Sales Brochure.pdf”
Content-Disposition: form-data; name=“VersionData”; filename=“Q1 Sales Brochure.pdf”
Binary data goes here.
Can someone help me how to achieve this in rest post snap?