Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to see the progress of files which is getting uploaded #1404

Open
Assignees
@Eldho1416

Description

I'm have been uploading a zipped file to drive using python and I'm not able to figure out how to see the progress of file which is getting uploaded. Is there anyway to see the progress bar, i'm attaching the part of code where i'm uploading the file.

Thanks

# Call the Drive v3 API
file_metadata = {
"name": os.path.basename(zipped_file),
"mimeType": "application/x-zip-compressed",
"parents": [self.folder_id]
}
media = MediaFileUpload(zipped_file, mimetype="application/zip", resumable=True)
file = (
service.files()
.create(body=file_metadata, media_body=media, fields="id")
.execute()
)
logger.info(f'File with ID: "{file.get("id")}" has been uploaded.')
  • Python version: Python 3.12.2
  • OS: Windows

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /