https://linen.dev logo
k
Hi team, I am facing a problem and unable to upload media to twitter. Even when I provide s3 file path, it shows error. It would be helpful if we can add a file url like Instagram.
a
Sure, we'll check the feasibility. Could you share the logId from when the Twitter media upload failed?
k
Don't have the logId as I was trying it on playground and I am getting media:Invalid JSON in case of both TWITTER_UPLOAD_LARGE_MEDIA and TWITTER_UPLOAD_MEDIA
a
Hey, the Issue seems to be the format. I can share a sample payload which you can use:
Copy code
{
  "name": "<file-name>",
  "mimetype": "image/png",
  "s3key": "507/twitter/TWITTER_UPLOAD_MEDIA/request/xxxxxx"
}