Thursday, January 12, 2012

[YouTube-API] Re: Incorrect mime type set for upload produces "Invalid Request"

Hello,

Potentially. I can pass that along as feedback to the team that
handles uploads.

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


On Jan 11, 9:48 am, jonatron <jonathan.ayl...@hexus.net> wrote:
> $yt = new
> Zend_Gdata_YouTube($httpClient,$applicationId,$clientId,$developerKey);
> $filesource = $yt->newMediaFileSource($file);
> $filesource->setContentType(get_file_mime_type($file));
>
> My get_file_mime_type function wasn't working properly, and was returning
> "charset=binary". The response from the API is just "Invalid Request",
> which couldn't be much more unhelpful. Can a more helpful response be
> returned?

--
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