Saturday, June 2, 2012

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

Hello Jeff, 

I'm using the Youtube API and have the same problem as jonatron. 

I'm also using the Zend GData Zend_Gdata_YouTube class to upload videos. 

It would be nice to have a response like "bad MIME type error", this will allow to generate an explicit message to users.

Also, I seached on Google to find a list of accepted Youtube MIME types but found nothing, is there a list of Youtube accepted MIME types somewhere ? 

Their is the following page http://support.google.com/youtube/bin/answer.py?hl=fr&answer=55744 but the list seems to be not exhaustive. 

Thanks, 

Baptiste

Le jeudi 12 janvier 2012 23:32:27 UTC+1, Jeffrey Posnick a écrit :
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 view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/qQv6VDin69AJ.
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