title: YouTube resumable upload file from another server using php
body: <p>I am using the following php sample code to upload videos to youtube: <a href="https://developers.google.com/youtube/v3/code_samples/php#resumable_uploads" rel="nofollow">https://developers.google.com/youtube/v3/code_samples/php#resumable_uploads</a></p>
  
  <p>However, I need to look into the possibility to upload a file stored in a another server. For instance, the path to the video as in the example above</p>
  
  <pre><code>$videoPath = "/path/to/file.mp4";
  </code></pre>
  
  <p>to be replace with something similar to </p>
  
  <pre><code>$videoPath = "http://142.4.1.45/myvideos/tutorials/video_1.mp4";
  </code></pre>
  
  <p>Is this possible? I tried doing it, but get a timeout error.</p>