• Parbati Bose 6
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello everyone 

I need some help for uploading large files into s3 bucket. 

I need to be able to split a blob and upload it to aws s3 bucket using Http PUT operation. I am able to do that upto 12 MB file in a single upload because that is the request body size limit in Apex .
So i need to be able to upload using multipart operation. I noticed s3 allows to upload in parts and gives back a uploadId. wondering if anyone has already done this before in salesforce apex code. it would be grewatly appreciated.

Thanks in advance
Parbati Bose.

Hello,

 

I'm trying to upload a pdf using REST API into salesforce.

 

Here's the curl:

 

https://na1.salesforce.com/services/data/v20.0/sobjects/Document/

 I'm doing a POST with a multipart/form-data. I'm sending the variable Body in the content containing my file.

 

Here's the error I'm getting:

 

[{"message":"Multipart message must include a non-binary part","errorCode":"INVALID_MULTIPART_REQUEST"}]

 

Any help?

 

Best Regards,

 

Sabine