title: Upload videos to youtube with javascript and without signing in to google
body: <p>I want to allow visitors of my site to upload videos to my YouTube channel.</p>
  
  <p>I don't want to force the visitors to sign in with Google.</p>
  
  <p>I want the upload to be sent from the visitors browser directly to YouTube using CORS or similar. See example below.</p>
  
  <p>I don't want to handle the video on my server. I don't like the idea of my server first receiving a 1GB (example) file and then sending it to YouTube. It would stress my storage capabilities and my bandwidth.</p>
  
  <p>The example below is almost perfect. </p>
  
  <p>The only problem with it is that it requires the user to sign in user their google account.</p>
  
  <p>What I'm wondering is if I somehow can give the client the proper credentials to use MY account to upload the video. </p>
  
  <p>Is that possible? Can I perhaps generate some kind of access token server side and send it to the client so that the client can upload a video to YouTube under my name? </p>
  
  <p>Can it be done without giving the client the ability to do other stuff such as delete videos / edit my account etc?</p>
  
  <p>Example here: <a href="https://youtube-api-samples.googlecode.com/git/yt-upload-javascript/index.html" rel="nofollow">https://youtube-api-samples.googlecode.com/git/yt-upload-javascript/index.html</a></p>