Friday, January 6, 2012

[YouTube-API] Re: Uploading from browser

Hello Bo,

I'm not sure what the issue is just from looking at that HTML. Is
there a test page that's publicly accessible where I can reproduce the
problem for myself?

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Jan 5, 9:36 pm, Bo Han <bo.ning....@gmail.com> wrote:
> Hi Jeffrey,
>
> 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 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