© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
_BLU

❔ Upload super large files to asp net core

How do I upload very large files to asp net core?
I want to access a
Stream
Stream
of the file without waiting for the files to be uploaded completely.
A 20 GB file should use the same memory footprint as a 1 MB file.
Storing the file temporarily on Disk is also not an option.

I already tried to remove
FormValueProviderFactory
FormValueProviderFactory
,
FormFileValueProviderFactory
FormFileValueProviderFactory
,
JQueryFormValueProviderFactory
JQueryFormValueProviderFactory
.
But when I access the raw
Request.Body
Request.Body
I get some header which I don't know how to parse correctly.
------WebKitFormBoundarywAIAlHFsVDdRmB27\r\n
Content-Disposition: form-data; name="file"; filename="Hello World.txt"\r\n
Content-Type: text/plain\r\n
\r\n
Hello World\r\n
------WebKitFormBoundarywAIAlHFsVDdRmB27--\r\n
------WebKitFormBoundarywAIAlHFsVDdRmB27\r\n
Content-Disposition: form-data; name="file"; filename="Hello World.txt"\r\n
Content-Type: text/plain\r\n
\r\n
Hello World\r\n
------WebKitFormBoundarywAIAlHFsVDdRmB27--\r\n
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Troubleshooting large ASP NET Core cookie?
C#CC# / help
4y ago
❔ ASP.NET to .net Core
C#CC# / help
3y ago
[ASP.NET Core] Apply a selfsigned certificate to asp.net core?
C#CC# / help
4y ago