You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following tutorial makes use of the File Upload sendAPI to submit the meta data via a server-side application and then upload the video file itself directly to YouTube:
Client-side
$('#fileupload').fileupload({forceIframeTransport: true,submit: function(e,data){varthat=$(this);// Post the current file meta data to your application,// to receive the YouTube upload url and token:// http://code.google.com/apis/youtube/1.0/developers_guide_python.html#BrowserUpload$.post('/your_application_url',data.files[0],function(result){data.url=result.url;data.formData={token: result.token};that.fileupload('send',data);});returnfalse;}});
Since YouTube only allows single file uploads and expects a certain parameter name, the file input field needs to be adjusted as well: