Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 492277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:05:45+00:00 2026-05-13T02:05:45+00:00

I am trying to upload a photo using the API and am having an

  • 0

I am trying to upload a photo using the API and am having an issue that I hope you can help me with. Below, I have pasted the http request to the API (minus the twitter username/password). I am getting an error message back saying image not found, even though the image is there with the proper name “media”. I have created a simple web project on my end to test to make sure the image is being encoded correctly, and it is. Is there anything in this request that you can see that would cause the api to reject this?

Thanks

POST /api/upload HTTP/1.1
Accept: */*
Referer: http://localhost:31898/ClientBin/DragDropTwitPic.xap
Content-Length: 2779
Content-Type: multipart/form-data; boundary=1eb2cc59-c390-4022-a47f-bb5c5a514e27
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.0; MS-RTC LM 8; .NET4.0C; .NET4.0E)
Host: twitpic.com
Connection: Keep-Alive
Pragma: no-cache
--1eb2cc59-c390-4022-a47f-bb5c5a514e27
Content-Disposition: form-data, name="media"; filename="test.jpg"
Content-Type: image/pjpeg
{encoded image removed}

--1eb2cc59-c390-4022-a47f-bb5c5a514e27
Content-Disposition: form-data; name="username"
{removed from this post}
--1eb2cc59-c390-4022-a47f-bb5c5a514e27
Content-Disposition: form-data; name="password"
{removed from this post}
--1eb2cc59-c390-4022-a47f-bb5c5a514e27--
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T02:05:46+00:00Added an answer on May 13, 2026 at 2:05 am

    Figured it out. In the Content-Type Disposition for the file upload I had this:

    Content-Disposition: form-data, name=”media”; filename=”test.jpg”

    Instead of the required this:
    Content-Disposition: form-data; name=”media”; filename=”test.jpg”

    Stupid commas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to upload a photo to facebook using graph api and keep
i'm trying use facebook API to upload photo in my fan page. I downloaded
i am trying to upload photo to facebook using fiddler In the request builder
I was trying to upload a photo on facebook using a browser with no
I'm trying to upload images using Graph API Batch Request, but i'm unable to
I'm trying to upload a photo to an album of a fan-page using the
Looking for some code to upload a photo to facebook using the Graph API
I'm new to the facebook api, and i have a small issue. I'm trying
I'am developing with PhoneGap to iPhone. Trying to FileTransfer.upload(filePath, http...) a Photo from library.
iam trying to show image preview before upload, for that i am using code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.