title: Problem accessing user uploaded video in temporary memory
body: <p>I'm trying to submit a user uploaded video to youtube using an html input type <code>file</code> and the python module youtube-upload.  When the form is submitted it is handled like so:</p>
  
  <pre><code>if request.method == 'POST':
      video = request.FILES['file']
  
      v=str(video)
  
      command = 'youtube-upload --email=email@gmail.com --password=password --title=title --description=description --category=Sports ' + v
  
      r = subprocess.Popen(command,   stdout=subprocess.PIPE)
      v = r.stdout.read()
  </code></pre>
  
  <p>So I would assume the problem is that I need to provide a more complete path for the video.  If this is the case, what is the path to access the video in temporary memory.</p>
  
  <p>The generic for of the command is: 
  <code>youtube-upload --email=email --password=password --title=title --description=description --category=category video.avi</code></p>
  
  <p>Alternatively, I've looked at the youtube api specifically <a href="http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#uploading_videos" rel="nofollow">here</a> but if anyone could provide a more complete explanation of how to do this in python using the api that would be amazing. Unfortunately, the guide on the site just focuses on the xml. </p>
  
  <p>EDIT FOLLOWING sacabuche's COMMENT:</p>
  
  <p>so my view is now roughly:</p>
  
  <pre><code>def upload_video(request):
       if request.method == 'POST':
           video = request.FILE['file']
           v = video.temporary_file_path
           command = 'youtube-upload --email=email@gmail.com --password=password --title=title --description=description --category=Sports ' + v   
  
           r=subprocess.Popen(command, stdout=subprocess.PIPE)
  
           vid = r.stdout.read()
       else:
           form = VideoForm()
           request.upload_handlers.pop(0)
       return render_to_response('create_check.html', RequestContext(request, locals() ) )
  </code></pre>
  
  <p>but <code>v=video.temporary_file_path</code> draws the error <code>'InMemoryUploadedFile' object has no attribute 'temporary_file_path'</code>. So video is still in temporary memory and I don't know what object <code>temporary_file_path</code> is suppose to be called on or how to get said object.</p>