Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

create-upload-session is missing upload command #491

@dsrink

Description

@dsrink

Is your feature request related to a problem? Please describe the problem.

I am trying to upload a large file in chunks.
Calling mgc with parameters
drives items create-upload-session post --drive-id DRIVE_ID --drive-item-id FILE_ID --body '{ "name": "TARGET_FILE_NAME", "file": {} }'
--> seems to work fine in my case, it yields a legitimate-looking uploadUrl (717 bytes of parameters, starting to count at "?guid=").

But I fail to find the way to use mgc to use that uploadUrl to upload the chunks of the large file.

Describe the solution you'd like.

Which part am I missing here? I assume that "mgc" is missing a command/mode to work with that uploadUrl.

If my assumption is correct, then this request is about adding such a command.

If my assumption is wrong, then this request is to provide details within this issue, and update the documentation accordingly.

Additional context?

When trying to use that uploadUrl with an external script (e.g. with python-requests), I am missing the authentication header / token which was created by "mgc login", therefore I get a HTTP 401 due to missing authentication. So this doesnt seem to be an option either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions