+ Start a Discussion

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:

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



- 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