Forum Discussion
SpiroTaleski
4 years agoValued Contributor
I was not aware about that limitation. Did the snap fail if you try to upload content greater than 50MB/37MB?
I am not very familiar with the Salesforce API’s, but you can try to send below sample as a body of the request (by replacing with your data):
{
"ContentDocumentId": "069D00000000so2",
"ReasonForChange": "Marketing materials updated",
"PathOnClient": "Q1 Sales Brochure.pdf",
"VersionData": "your binary file data(file content)"
}
And add Content Type = multipart/form-data, as a header of the request:
Regards,
Spiro Taleski
Mihir
4 years agoNew Contributor II
Hi @Spiro_Taleski,
Yes, Salesforce will send an error response if you try to upload content greater than 50MB/37MB using Salesforce API’s.
I have tried as you suggested but it didn’t work. ☹️
Thanks,
Mihir