mirror of
https://github.com/rclone/rclone
synced 2025-01-16 21:07:28 +01:00
drive: add missing seek to start on retries of chunked uploads
follow up to ee13bc6775
This commit is contained in:
parent
ee13bc6775
commit
51866fbd34
@ -157,6 +157,7 @@ func (rx *resumableUpload) transferStatus() (start int64, err error) {
|
|||||||
|
|
||||||
// Transfer a chunk - caller must call googleapi.CloseBody(res) if err == nil || res != nil
|
// Transfer a chunk - caller must call googleapi.CloseBody(res) if err == nil || res != nil
|
||||||
func (rx *resumableUpload) transferChunk(start int64, chunk io.ReadSeeker, chunkSize int64) (int, error) {
|
func (rx *resumableUpload) transferChunk(start int64, chunk io.ReadSeeker, chunkSize int64) (int, error) {
|
||||||
|
_, _ = chunk.Seek(0, 0)
|
||||||
req := rx.makeRequest(start, chunk, chunkSize)
|
req := rx.makeRequest(start, chunk, chunkSize)
|
||||||
res, err := rx.f.client.Do(req)
|
res, err := rx.f.client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user