Skip to content
Advertisement

Uploading video to youtube stops with no error

I’ll like to upload videos to youtube, I have correctly the token, but never uploads it , gives no error… it stops execution at line $status = $media->nextChunk($chunk);

Here is my code:

JavaScript

when executing the code, it outputs “YES 1YES 2” , never reaches echo “NOT REACHED”; line…. why? Can I add an exception or something to tell me the error? The video file exists and the program finds it, as the file size is correct.

Thanks

Advertisement

Answer

Very hard to spot the mistake with no logs or exceptions, but how about $videoData['privacy'] = "https://XXXXXX.com/privacy.html"?

Privacy status can be PUBLIC | PRIVATE | UNLISTED, and on ‘normal’ accounts it can be only PUBLIC. Maybe that could be mistake?

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement