upload large file graph API 60Mb+ error

jerico bernales 1 Reputation point

Is it possible to upload more than 60mb (e.g. xxx.pdf (70mb))to MS teams channel? or is it possible to submit 2 PUT request with a chuck data?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,826 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mamatha-MSFT 156 Reputation points

    Hi @jerico bernales - I am able to send 69MB pdf file to Teams channel using following query.

    `POST https://graph.microsoft.com/beta/teams/fbe2bf47-16c8-47cf-b4a5-4b9b187c508b/channels/19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2/messages

    Content-type: application/json

    "body": {
    "contentType": "html",
    "content": "Here's the latest budget. <attachment id=\"153fa47d-18c9-4179-be08-9879815a9f90\"></attachment>"
    "attachments": [
    "id": "153fa47d-18c9-4179-be08-9879815a9f90",
    "contentType": "reference",
    "contentUrl": "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx",
    "name": "Budget.docx"


    Could you please share the request and error message which you are getting.