You need to sign in to do that
Don't have an account?
TomiPirhonen
File upload Chatter REST API v27.0 - Status Code 500
I am trying to upload a PDF file to a Chatter feed in my Java web application.
It works fine with v25.0, but when i try to use v27.0 it does not work anymore and response status code is 500 - Internal Server error?
I'm using the example code from Chatter REST API page number 138:
http://www.salesforce.com/us/developer/docs/chatterapi/salesforce_chatter_rest_api.pdf
Any ideas to work this around?
Hi Tomi,
Can you post the exact HTTP request you're making? You can retrieve it using a sniffer like Ethereal
Thanks,
- Chris
One change in v27.0 is that your "new file attachment" must now include this property:
"attachmentType": "NewFile"
However, you should never get a 500, so I would still like to diagnose that issue