title: youtube api v3.0 Browser-based Uploading in php
body: <p>i'm trying (php) to upload a video (browser based not storing video in my app want to upload straight to youtube). </p>
  
  <p>I cant find any docs on this. Eg like this <a href="https://developers.google.com/youtube/2.0/developers_guide_php#Browser_based_Upload" rel="nofollow">https://developers.google.com/youtube/2.0/developers_guide_php#Browser_based_Upload</a></p>
  
  <p>But for v3.0 i'm looking at the code that is provided (3.0) but cant see a way to get video (ie $videoPath = "/path/to/file.mp4")  without storing (temporarily in my app).</p>
  
  <pre><code>// REPLACE with the path to your file that you want to upload
  $videoPath = "/path/to/file.mp4";
  
  // Create a snipet with title, description, tags and category id
  $snippet = new Google_VideoSnippet();
  $snippet-&gt;setTitle("Test title");
  $snippet-&gt;setDescription("Test description");
  $snippet-&gt;setTags(array("tag1", "tag2"));
  </code></pre>