• selrassy
  • NEWBIE
  • 0 Points
  • Member since 2013

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

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

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