title: twitter api v1.1 statuses/update_with_media Missing or invalid url parameter
body: <p>please help me i have a problem uploading image to twitter using api v1.1 
  it was working perfect one month ago but it now doesn't work.
  i'm using Abraham twitteroauth <a href="https://github.com/abraham/twitteroauth" rel="nofollow">https://github.com/abraham/twitteroauth</a>
  and i'm using enctype="multipart/form-data" as attribute in the form tag 
  this is my code :</p>
  
  <pre><code>             require 'inc/twitter.class.php';   
  
               if(!empty($_FILES['media']['name'])){    // tweet with media
                    $file_name  = $_FILES['media']['name'];
                    $file_type  = $_FILES['media']['type'];
                    $file_size  = $_FILES['media']['size'];
                    $file_temp  = $_FILES['media']['tmp_name'];
                    $file_error = $_FILES['media']['error'];
  
                    $handle    = fopen($file_temp,'rb');
                    $image     = fread($handle,filesize($file_temp));
                    fclose($handle);
                    $tweet = new TwitterOAuth($YOUR_CONSUMER_KEY, $YOUR_CONSUMER_SECRET, $row_user_info['access_token_oauth_token'], $row_user_info['access_token_oauth_token_secret']);
                    $result = $tweet-&gt;post('statuses/update_with_media',array('media[]' =&gt; "@{$image};type={$file_type};filename={$file_temp}",'status' =&gt; 'test'));
  
                    echo '&lt;pre&gt;';
                    print_r($result);
                    echo '&lt;/pre&gt;';
  </code></pre>
  
  <p>the result is:</p>
  
  <pre><code>stdClass Object
  (
  [errors] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [code] =&gt; 195
                  [message] =&gt; Missing or invalid url parameter.
              )
  
      )
  )
  </code></pre>
  
  <p>i don't know what is missing in that
  please help me</p>