box / box/box-windows-sdk-v2

File Limits on file uploads

Open
#733 1 comment 0 reactions 0 assignees View on GitHub
bug dontstale
Dominant language
C#
Stars
183
Forks
160
Avg merge
10h 44m
Merged PRs (30d)
15

Description

Hello,
I have a tool that uses this SDK for file uploads I'm getting this error on files over 4gb.

Content-Length greater than UINT32_MAX. Use 'Transfer-Encoding: chunked' instead.
UINT32_MAX is 4,294,967,295

I am trying to avoid using chunked uploads since this SDK also pulls all of the file in memory instead of utilizing a stream correctly for chunked uploads. Some users don't have 20gb of memory etc.

It would be great if regular uploads were not limited by int32 max.

-Matt

Contributor guide

Open the contributing guide

Research direction

Trace the SDK's regular file-upload path and inspect how it sets Content-Length and handles files larger than UINT32_MAX. Compare that path with the chunked-upload handling, paying attention to whether the file is loaded fully into memory. Done means regular uploads support files over 4 GB without requiring the whole file in memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.