Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YT javascript upload #15

Open
jmgirven opened this issue Sep 12, 2014 · 1 comment
Open

YT javascript upload #15

jmgirven opened this issue Sep 12, 2014 · 1 comment

Comments

@jmgirven
Copy link

I noticed that on your old page at code.google.com, you had a sample for creating an upload page using javascript:

https://code.google.com/p/youtube-api-samples/source/browse/yt-upload-javascript/
https://youtube-api-samples.googlecode.com/git/yt-upload-javascript/index.html

On this github page, I couldn't find the corresponding sample though. Has it been dropped?

I was hoping to create a javascript uploader for my web app. The old sample works the majority of the time, but I notice that for videos larger than ~2GB, the upload does not start. In the console, I get the following message:

XMLHttpRequest cannot load https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet&upload_id=. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://youtube-api-samples.googlecode.com' is therefore not allowed access.

This does not happen for files smaller than 2GB. This happens on both my page and the sample. I understood that YouTube removed its restriction on files larger than 2GB. I am logged in with my YouTube account on the page. The account has a channel already and is verified to allow long videos.

Any idea what is happening here?
Thanks, Jon.

@kokphinsheng
Copy link

Send money bank account soppy 200310001515 kok phin chian Affinbank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants