Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9124257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:31:55+00:00 2026-06-17T06:31:55+00:00

I am a bit confused about the resumable upload to google drive and I

  • 0

I am a bit confused about the resumable upload to google drive and I am hoping if someone could be kind enough to clarify things a bit.

At this page:
https://developers.google.com/api-client-library/python/guide/media_upload
it states:

For large media files, you can use resumable media uploads to send files, which allows files to be uploaded in smaller chunks.

Describes also the method of doing so using next_chunk(), checking for errors and use of expotential retrying.

All other references to uploading, either inserting or updating a file, are using “resumable=True” but do not implement the “next_chunk” function. Like in this page: https://developers.google.com/drive/v2/reference/files/insert#examples

Does this mean that “resumable” is handled by the library?
If not, in case of errors, are those the same as in the previous example (with next_chunk)?
If my app is supposed to catch the errors then the only way to go is to start uploading from the start since there is no return for success bytes or something else. Is this the right way?

Also at this page: https://developers.google.com/drive/manage-uploads
it states:

With resumable uploads, you can break a file into chunks and send a series of requests to upload each chunk in sequence. This is not the preferred approach since there are performance costs associated with the additional requests, and it is generally not needed.

Which one of those two statements is correct?

Thanks in advance for any input.
Andreas

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:31:56+00:00Added an answer on June 17, 2026 at 6:31 am

    Andreas,

    I believe the service.files.insert().execute() with the resumable=true property does something similar to the manual next_chunk on the example you posted… I’m not sure how exactly it handles it, because I couldn’t find a way to read the source (I’m just starting with python), but if I interrupt the upload of a large file using the .insert().execute() method with resumable=true, one of the lines of the output is this:

    File "/usr/lib/python2.5/site-packages/apiclient/http.py", line 656, in execute
      _, body = self.next_chunk(http=http)
    

    However, I couldn’t find a way to get a progress indicator using this method, so I preferred to use the manual request.next_chunk(), instead.

    About the performance costs of resumable upload, there is extra information being sent, but I don’t think it’s gonna slow too much the process… you can use bigger chunksizes (some MiB), so that the extra requests bytes are negligible. The SDK documentation does argue in favor of resumable upload in some circunstances:

    “To upload data files more reliably, you can use the resumable upload protocol. This protocol allows you to resume an upload operation after a communication failure has interrupted the flow of data. It is especially useful if you are transferring large files and the likelihood of a network interruption or some other transmission failure is high, for example, when uploading from a mobile client app. It can also reduce your bandwidth usage in the event of network failures because you don’t have to restart large file uploads from the beginning.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a little bit confused about 2 things. Firstly when I create an
I am a bit confused about this. If you're building a distributed application, which
Im a little bit confused about this adapter element (NotifyDataSetChanged) cause when I use
I am a bit confused about this. For displaying images in my HTML page,
I'm a bit confused about how an object could be edited with Spring Forms,
I am a bit confused about this piece of code. public static void Foo(A
I am a bit confused about wrapping a c++ dll in c#. What kind
I'm a little bit confused about how to approach this. I had never used
I'm a bit confused about this. Does XMLHttpRequest work on a remote URL or
I'm a bit confused about the following. Given this class: public class SomeClassToBeCasted {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.