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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 176k
  • Answers 176k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Business logic belongs in the business layer. I think this… May 12, 2026 at 3:17 pm
  • Editorial Team
    Editorial Team added an answer Can I shorten this function? If for function you're meaning… May 12, 2026 at 3:17 pm
  • Editorial Team
    Editorial Team added an answer This problem does not have a simple or automatic solution.… May 12, 2026 at 3:17 pm

Related Questions

For 6 years I've had a random number generator page on my website. For
Every time I try to post to twitter in my rails app, the first
I do most of my work with Microsoft technologies these days, so naturally I'm
I am trying to parse Twitter RSS feeds and put the information in a
THE SITUATION I have a series of divs setup to contain various content: <div

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.