Thanks!
I managed to do that part through Node.js. Now I have an upload URL and token.
But I'm having trouble actually uploading the video. I display a form to the user according to the documentation. I then try to upload a small .mp4 video file, but I get Invalid Request every time.
This is what the form looks like. I've substituted in default values of google.com for nexturl, true for onsubmit and nothing for errMsg because I'm just trying to get it to work.
<form action=\'+url+'?nexturl=google.com\' method=POST
enctype="multipart/form-data" onsubmit="return true;">
<input id="file" type="file" name="file"/>
<div id="errMsg" style="display:none;color:red"></div>
<input type="hidden" name="token" value=\"'+token+'\"/>
<input type="submit" value="go" />
</form>
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/YOM_VtzUVhYJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment