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 374419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:24:13+00:00 2026-05-12T14:24:13+00:00

Taken from the Twitter’s API section. Why do my image uploads always fail? The

  • 0

Taken from the Twitter’s API section.

Why do my image uploads always fail?
The image update methods require
multipart form data. They do not
accept a URL to an image not do they
accept the raw image bytes. They
instead require the data to be
delivered in the form of a file upload.

Has anyone came to a conclusion with this, or resolved this issue? I’m having various amounts of trouble trying to get it to post an image.
I’ve looked around and found no solutions with this.

  • 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-12T14:24:13+00:00Added an answer on May 12, 2026 at 2:24 pm

    What exact problems are you having? From the sounds of the API, you just need to do a regular file upload to Twitter itself. The following allows you to upload a file to your server and push it to Twitter via the API docs:

    <?php
        if( $_POST ) {
            // Do anything needed for authentication
            $ch = curl_init('http://twitter.com/account/update_profile_background_image.xml');
            curl_setopt_array(array(
                CURLOPT_POSTFIELDS => array('image' => '@'.$_FILES['myfile']['tmp_name']),
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_POST => true,
            ));
    
            $rsp = curl_exec($ch);
            // Read the response
        }
    ?>
    <form enctype="multipart/form-data" method="post">
        File: <input type="file" name="myfile" />
        <input type="submit">
    </form>
    

    More information can be found in the PHP documentation and the cURL documentation for PHP.

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

Sidebar

Related Questions

I want to be able to compare an image taken from a webcam to
I have taken an image from UIImagePickerController , but the file looks too big
Can the performance of this sequential search algorithm (taken from The Practice of Programming
I'd like to build a query string based on values taken from 5 groups
I am using some code which was originally taken from the Apple sample ViewTransitions
Let's say I have N pictures of an object, taken from N know positions.
I am using asp.net mvc for an application. I've taken some guidance from Rob
I've taken over a mixed PHP4/PHP5 project which has been handed down from developer
I've taken the plunge and upgraded (or maybe downgraded?!) from WinXP to Vista. Everything
I tried a naive class taken from a book I found in the office.

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.