You need to sign in to do that
Don't have an account?
Chatter API - Attach new file in feed and get a bad request (400 error)
Hi there,
My web is connected with Chatter API to send feed to user's wall. I would like to attach an image as well with that feed but I've been getting a bad request, a 400 every time I try to upload an image. I'm really depressed because I don't know what's happening even when headers and request are the same I think. To test it I checked the request in the web site http://requestb.in/ which let you check every single request in order to see the headers, so text below is request I have been doing.
The API url I've been pointing is https://eu2.salesforce.com/services/data/v29.0/chatter/feeds/user-profile/me/feed-items
Thanks in advance.
Diego
Content-Type: application/octet-stream; charset=ISO-8859-1
Also, was there an error message returned along with the HTTP 400?
Hi alouie!
Firstly apologies for the delay. I've been struggling with this issue eventually I managed to do it. I changed the libraries so that I use jersey as a client. Everything works right now.
Thank you so much
Diego