title: mgp25 Instagram-API can't upload anymore
body: <p>mgp25 Instagram-API is great, but… My code was working fine for weeks and then it send me back this message "Invalid request options.".</p>
  
  <p>I have the same problem with uploadPhoto.php sample script.</p>
  
  <p>I try to reload de files.
  I try with other Instagram accounts.
  On a server, on my computer… I have always the same message.
  Any idea?</p>
  
  <p>The official code that is not working anymore (for me):</p>
  
  <pre class="lang-php prettyprint-override"><code>
      set_time_limit(0);
      date_default_timezone_set('UTC');
  
      require __DIR__.'/vendor/autoload.php';
  
      /////// CONFIG ///////
      $username = 'xxxx';
      $password = 'xxx';
      $debug = false;
      $truncatedDebug = false;
      //////////////////////
  
      /////// MEDIA ////////
      $photoFilename = __DIR__."/test.png";
      $captionText = 'Test!!!';
      //////////////////////
  
      $ig = new \InstagramAPI\Instagram($debug, $truncatedDebug);
  
      try {
          $ig-&gt;login($username, $password);
      } catch (\Exception $e) {
          echo 'Something went wrong: '.$e-&gt;getMessage()."\n";
          exit(0);
      }
  
      sleep(5);
  
      try {
          $photo = new \InstagramAPI\Media\Photo\InstagramPhoto($photoFilename);
       sleep(5);
          $ig-&gt;timeline-&gt;uploadPhoto($photo-&gt;getFile(), ['caption' =&gt; $captionText]);
      } catch (\Exception $e) {
          echo 'Something went wrong: '.$e-&gt;getMessage()."\n";
      }
  </code></pre>
  
  <p>This code run fine until the upload function.</p>
  
  <p>PS: All my non uploading scripts are working fine.</p>