-
Our system uploads files to OneDrive using the Graph API upload session. But I cannot find out how to set the correct content type. The How can I pass the content type correctly to Graph API when I upload the file using an |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Thanks for raising this @Ghostbird Any chance you've come across the docs here? The should have info how to do large file uploads using the SDKs. https://learn.microsoft.com/en-us/graph/sdks/large-file-upload?tabs=csharp |
Beta Was this translation helpful? Give feedback.
-
Of course, however, there's nothing there about the content type.
…On 29 August 2024 15:41:02 UTC, Andrew Omondi ***@***.***> wrote:
Thanks for raising this @Ghostbird
Any chance you've come across the docs here? The should have info how to do large file uploads using the SDKs.
https://learn.microsoft.com/en-us/graph/sdks/large-file-upload?tabs=csharp
--
Reply to this email directly or view it on GitHub:
#2646 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Whelp. I think Microsoft Graph is spectacularly unsuitable for storing files. I'm not doing anything special. I'm just uploading an image. But the content type returned is "application/octet-stream" which is spectacularly useless. The File documentation states
Read-only is evident when trying to update it with the correct content type yields:
WHY would anyone design a file storage mechanism in such a way that it explicitly warps the file metadata into something incorrect when storing a file? This seems utterly mental to me! This guarantees that if I ever have to choose a file storage for a project, it will NOT be through Microsoft Graph. |
Beta Was this translation helpful? Give feedback.
Whelp. I think Microsoft Graph is spectacularly unsuitable for storing files.
I'm not doing anything special. I'm just uploading an image. But the content type returned is "application/octet-stream" which is spectacularly useless.
The File documentation states
Read-only is evident when trying to update it with the correct content type yields:
WHY would anyone design a file storage mechanism in such a way that it explicitly warps the f…