Code 400 when receiving a response from APPEND media method



I am trying to add image type media to a tweet but I keep getting response 400 bad request in my append method. I’m using java and sending the request in a Multi Part form as advised on the official guide and I’m sending the media in byte form. Can someone help with the right parameters needed to send in order to get a correct response, or some sort of a working append method?

I’ve tried following the doc so what you see there are the parameters I am sending now.


It is worth trying the large-video-upload sample on TwitterDev github to see if you can reproduce this same issue. It is Python code, but the steps are the same.


@venkataruna your question is not relevant to this topic. I’d suggest you start a new topic in the Twitter for Websites category.