googledrive/cors-upload-sample — pull request #2 by jeffposnick (2014-05-22 19:26:58+00:00)
Title: A few enhancements:

* Add in an onProgress listener for uploads.
* Properly trigger the onError callback when initial metadata submission fails.
* Added in a baseUrl option to override the default Drive-centric base URL. This makes this class usable with, e.g., YouTube API uploads, or theoretically any modern Google API that supports uploads.