Simple graph Upload API endpoint able to upload 15 MB File

Divyanshu gupta 0 Reputation points
2023-11-03T16:46:55.5433333+00:00

As mentioned in the Microsoft Graph API Doc, we should use createUploadSession if I wanna upload a file more than 4 MB. But while using POSTMAN, I am able to upload a 15 MB pdf also.
Should I continue with this method, is it expected or not.

Microsoft Security Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 46,366 Reputation points
    2023-11-06T02:55:01.11+00:00

    Hi @Divyanshu gupta

    Using the simple upload API for files larger than 4MB is not recommended, as it may result in errors or unexpected behavior. It is possible that your 15MB PDF file was uploaded successfully due to some network or server conditions, but this is not guaranteed or consistent. Therefore, you should not continue with this method, and instead use the createUploadSession method for large file uploads.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


  2. Narendranath Choudari Medikonda 0 Reputation points
    2025-03-31T00:54:23.31+00:00

    I am trying to upload 100mb file using PutAsync method and I am able to upload the same. Is Microsoft recently updated from 4mb to 250mb for smaller files using PutAsync method instead of going for createuploadsession method. please suggest.

    https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.