Open 1357310795 opened 2 years ago
https://docs.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-beta
The LargeFileUploadTask is designed for uploading DriveItems which does not need /content
Considering that the Attachments API has just arrived from beta to v1.0, no one may have thought to test the usability of LargeFileUploadTask...........😥
Thanks for raising this @1357310795,
Ideally the response from the API should have the correct URL returned for uploadUrl
without need for further modification. This is the case for the other APIs like the ones below.
As this API looks to still be in beta, this may be an API bug/issue. We will raise this with the relevant API team and feedback if this is indeed the intended behaviour.
Please provide the following (and please check them off the list with [x]) before submitting this issue:
Expected behavior
Use LargeFileUploadTask to upload a file to TodoTask Attachment.
As this document illustrates, first we need to create an upload session. Here's an example of returned
uploadUrl
Then we should use the upload session to upload (to /content)
But the LargeFileUploadTask creates a request with WRONG URL
Actual behavior
The data is expected to be uploaded to
/attachmentSessions/AAMkADliMm=/content
but not/attachmentSessions/AAMkADliMm=
Steps to reproduce the behavior
As said above, use LargeFileUploadTask to upload a file to TodoTask Attachment.
Screenshots