Preethi P
Preethi P

Reputation: 1

OneDrive Chunk Upload: Getting HTTP 416 Only on Last Chunk, Despite Matching nextExpectedRanges and Active Session

I'm using OneDrive chunked upload for a file of 80MB, with a chunk size of 50MB.

All chunks except the last one are successfully uploaded. The last chunk always returns HTTP 416 (Range Not Satisfiable). The nextExpectedRanges matches my Content-Range exactly. The upload session is still active. Steps Taken & Debugging So Far:

Example of My Last Chunk Request: css Copy Edit

Content-Range: bytes 52428800-81539536/81539537 (nextExpectedRanges also returns "52428800-81539536" before this request.)

Despite everything matching, the last chunk still fails with HTTP 416.

Question: What could be causing OneDrive to reject only the last chunk? Are there any additional conditions for the final chunk in a chunked upload?

Upvotes: 0

Views: 13

Answers (0)

Related Questions