Is there a complete example for uploading big and small files in Drive? · microsoftgraph/msgraph-sdk-python · Discussion #967 · GitHub
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
-
Heading
-
Bold
-
Italic
-
Quote
-
Code
-
Link
-
Numbered list
-
Unordered list
-
Task list
-
Attach files
-
Mention
-
Reference
👍
1
reacted with thumbs up emoji
👎
1
reacted with thumbs down emoji
😄
1
reacted with laugh emoji
🎉
1
reacted with hooray emoji
😕
1
reacted with confused emoji
❤️
1
reacted with heart emoji
🚀
1
reacted with rocket emoji
👀
1
reacted with eyes emoji
Footer
You can’t perform that action at this time.
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
-
Right now there are many questions asking for clarification about uploading small and large files to the Drive.
Many answers, however, only give a piece of information or remand to pages of the documentation which are not clear.
For example, #869 gives a nice answer about the uploading problem, BUT uses functions without specifying from where to import them (e.g. DriveItemUploadableProperties. In other answers this is better explained, like in #894 there is the complete explanation on the import).
Another example of an answer which doesn't give the complete picture is #874, which remands at the documentation for PUT requests https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0, but there there isn't any example shown in python.
I also find that the languages supported in the documentation are not consistent, sometimes python is present, sometimes it is not.
I think that it would be extremely helpful to have a complete example for uploading large and small files using the SDK, with:
This would help tremendously beginners like me who keep finding incomplete answers about the topic and cannot manage to solve what I believe is one of the most important functions that the SDK should provide
Beta Was this translation helpful? Give feedback.