Hi @Alec Tang ,
Thank you for posting in this community.
This is because the file upload limit is set in the service and cannot be changed. When uploading files larger than 250 MB, use file chunking. This approach breaks the file into smaller chunks and uploads them sequentially. The operation in the Graph API provides an upload URL containing a session identifier. You can then use requests to upload chunks to this URL. Ensure that each chunk starts with the range specified in the “nextExpectedRanges” value from the previous response. /createUploadSessionPUT
Use a chunk size divisible by 320 KiB (327,680 bytes) for efficient handling1.
Experiment with different chunk sizes to find the optimal balance between performance and reliability. Smaller chunks may reduce latency but increase the number of requests, while larger chunks may improve efficiency but increase the risk of failure.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.