-
Notifications
You must be signed in to change notification settings - Fork 21
create-upload-session is missing upload command #491
Description
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.