We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-net-7-preview-1/
Sample goes in https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/minimal-apis/bindStreamPipeReader/7.0-samples
var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); app.MapGet("/", () => "Hello World!"); app.MapPost("/fileUp", async (IFormFile file) => { string tempfile = Path.GetTempFileName(); using var stream = File.OpenWrite(tempfile); await file.CopyToAsync(stream); }); app.MapPost("/FilesUp", async (IFormFileCollection myFiles) => { foreach (var file in myFiles) { string tempfile = Path.GetTempFileName(); using var stream = File.OpenWrite(tempfile); await file.CopyToAsync(stream); } }); app.Run();
The text was updated successfully, but these errors were encountered:
I'll take this
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
See https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-net-7-preview-1/
Sample goes in
https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/minimal-apis/bindStreamPipeReader/7.0-samples
The text was updated successfully, but these errors were encountered: