dailymotion/dailymotion-sdk-php — pull request #32 by nicolus (2014-10-29 19:10:37+00:00)
Title: uploadFile throws an exception if the API returned an error

I was having some trouble figuring out why I couldn't upload a temp file (without any extension) because uploadFile didn't throw any exception, just returned nothing and triggered a notice because $result['url'] was undefined.
This quick fix allows it to throw an exception, which will hopefully save some time for the next person that encounters this problem.