YouTube fileupload api error.
Hello;
I'm building a small site using YouTubes API system. I downloaded a YouTube.cfc from Ray Camden, and it works excellent. I am having an issue with a fileupload and the content I'm sending. It's outside the cfc function, it's the information I'm sending off to youtube. I've changed it around and I know it's my key words that is making it error. I am attaching the piece of code and the error
Error:
YouTubeCFC Upload Error: Domain=yt:validation, Code=invalid_value
my code:
<cfset yt = createObject("component", "youtube")>
<cfset yt.setDeveloperKey("<my key>")>
<cfset yt.login("<username>", "<password>")>
<cfset r = yt.upload(expandPath('#uploadedfile#'),'#title#','#description#','Category','key,word')>
The way this works is as follows:
this form uploads the video to the server, then youtube takes it to their server so the uploaded file is the actual file that is being sent