C
C#2y 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
------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
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server