title: Fatal error: Uncaught exception 'DailymotionTransportException'
body: <p>I am using Dailymotion SDK PHP ( <a href="http://www.dailymotion.com/doc/api/sdk-php.html" rel="nofollow">http://www.dailymotion.com/doc/api/sdk-php.html</a> ) to upload video on my Dailymotion Account.</p>
  
  <p>I can upload 1 video using this script, but if I try to upload another video after few minutes I can't do. It prints this error:</p>
  
  <pre><code>Fatal error: Uncaught exception 'DailymotionTransportException' with 
  message 'couldn't open file "" ' in Dailymotion.php:686 Stack trace: #0 
  Dailymotion.php(213): Dailymotion-&gt;httpRequest('http://upload-0...', Array) 
  #1 index.php(39): Dailymotion-&gt;uploadFile('') #2 {main} thrown in Dailymotion.php 
  on line 686
  </code></pre>
  
  <p>Here the PHP code:</p>
  
  <pre><code>&lt;?php
  
  session_start();
  
  // ----- account settings -----//
  $apiKey        = 'XXXXX';
  $apiSecret     = 'XXXXX';
  $testUser      = 'XXXXX';
  $testPassword  = 'XXXXX';
  $videoTestFile = 'test.mov';
  
  require_once 'Dailymotion.php';
  
  //----- scopes you need to run your tests -----//
  $scopes = array('userinfo',
              'feed',
              'manage_videos');
  
  //----- Dailymotion object instanciation -----//
  $api = new Dailymotion();
      $api-&gt;setGrantType(
      Dailymotion::GRANT_TYPE_PASSWORD,
      $apiKey,
      $apiSecret,
      array(implode(',', $scopes)),
      array(
          'username' =&gt; $testUser,
          'password' =&gt; $testPassword
      )
  );
  
  $url = $api-&gt;uploadFile($videoTestFile);
  
  $result = $api-&gt;post(
      '/videos',
      array('url'       =&gt; $url,
          'title'     =&gt; 'Test',
          'published' =&gt; true,
          'channel'   =&gt; 'sport',
          'private' =&gt; 'true',
          )
  );
  
  var_dump($result);
  }
  ?&gt;
  </code></pre>