On 24/02/15 17:34, Glenn Lewis wrote:
> The resumable uploads feature is a work-in progress and is likely to
> dramatically change, so I don't recommend using it yet.
> It was written initially to support the storage:v1 API (and the Google
> Cloud Storage client library veneer) which requires the "Name" parameter
> on uploads.
Ah OK.
I'll probably end up re-implementing it as it doesn't have exactly the
interface I want - I don't have an io.ReadSeeker, only an io.Reader.
I made an adaptor from io.Reader to io.ReadSeeker which allowed limited
seeking, but I think I'd be better off re-implementing the resumable
upload stuff to work with a limited buffer size, especially since it
isn't ready for prime time yet.
> If, however, you want to try it out locally with drive:v2, then you
> could comment out that check for the name parameter and see how it goes.
I'll try that just for interests sake!
Thanks
Nick