_BLU
_BLU
CC#
Created by _BLU on 1/15/2023 in #help
❔ 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
2 replies
CC#
Created by _BLU on 10/31/2022 in #help
Create new Desktop Icon Shortcut (lnk) using dotnet
How do I create a new Desktop Icon / Shortcut / .lnk using dotnet(6). A lot of tutorials only show how its being done in NetFramework and WshShell which does not exist in dotnet.
2 replies