Broken image upload on profile_image, but not on profile_background_image

3 views
Skip to first unread message

steve_b

unread,
May 27, 2011, 5:39:41 PM5/27/11
to Twitter Development Talk
hello,

I'm trying to update a user's profile image via the REST API, and
while I have no trouble sending tweets, and updating profile
background images, all "update_profile_image" tries give me
problems. I get the success response, and the current image changes,
but not into what I uploaded;instead it's simply the broken image
icon. Going to that image url gives me an access denied message.

The code I am using is
curl -F 'image=@profile.png' -H 'Expect:'
https://api.twitter.com/account/update_profile_image.json?oauth_access_token=MYACCESSTOKEN

and yes, I have experimented with using the "type" in the form data,
but not luck.Image is within specifications as well. I have done a lot
of research on this, and can't seem to figure out what is going on.

Like I said above, updating a profile background image works fine with
the same exact format. Would anyone be able to help me out with this?

Thanks,
Steve
Reply all
Reply to author
Forward
0 new messages