-
-
Save lgolubyev/fb7e6ae090d86c6909fdf5b7b01ecef6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.MapPost("/upload", async(IFormFile file) => | |
{ | |
using var stream = System.IO.File.OpenWrite("upload.txt"); | |
await file.CopyToAsync(stream); | |
}); | |
app.MapPost("/upload", async (IFormFileCollection myFiles) => { ... }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment