Closed GoogleCodeExporter closed 8 years ago
MediaIoBaseBase needs a seekable stream and sys.stdin isn't seekable, so this
wouldn't fix the issue.
Original comment by jcgregorio@google.com
on 13 Jun 2012 at 5:32
Sorry, I should have also noted that my modified MediaIoBaseUpload accepts an
is_seekable argument that causes it to skip the self._fh.seek(begin) line if
False. I'm not sure if this is something you would want to include as well.
Alternatively, we could use a try-catch or other mechanism to determine if the
object is seekable.
Original comment by yova...@google.com
on 13 Jun 2012 at 5:39
Seeking isn't optional, a chunk uploaded to the server may fail and the
uploader will seek back to re-upload the data.
Original comment by jcgregorio@google.com
on 13 Jun 2012 at 5:47
Right. I'm probably looking for a chunked non-resumable upload. Should this be
another distinct MediaUpload subclass? Do you think interest in such a subclass
is sufficiently common to provide it with the Google API client?
Original comment by yova...@google.com
on 13 Jun 2012 at 5:55
CL out for review: http://codereview.appspot.com/6300093/
Original comment by jcgregorio@google.com
on 14 Jun 2012 at 6:57
This issue was closed by revision 3ba72a5faf1a.
Original comment by jcgregorio@google.com
on 15 Jun 2012 at 12:40
Original issue reported on code.google.com by
yova...@google.com
on 13 Jun 2012 at 2:45