Has anyone solved the error 415 (Unsupported Media Type) in salesforce ? I tried to upload a file to ContentVersion via rest api request but it 415 error will be returned by my org. Is there any settings I need to enable so that my csv can be uploaded via rest?
I tried enreeco's approach to upload the file in my dev org. http://enreeco.blogspot.com/2013/01/salesforce-apex-post-mutipartform-data.html
I have org1 that uploads the file to org2.