C#C
C#3y ago
_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
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, FormFileValueProviderFactory, JQueryFormValueProviderFactory.
But when I access the raw 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
Was this page helpful?