Skip to content

Modernize hosting-model code snippets in file-uploads.md to minimal hosting - #37765

Merged
guardrex merged 1 commit into
dotnet:mainfrom
SkyDevLab:docs/37641-modernize-file-uploads-hosting-snippets
Oct 5, 2026
Merged

guardrex merged 1 commit into
dotnet:mainfrom
SkyDevLab:docs/37641-modernize-file-uploads-hosting-snippets

Conversation

@SkyDevLab

@SkyDevLab SkyDevLab commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #37641

Summary

Modernizes older pre-3.0 hosting snippets in the Server and app configuration section of aspnetcore/mvc/models/file-uploads.md (>= aspnetcore-6.0 moniker block) to minimal hosting style, aligning with the snippets introduced in #37600 and the rest of the modern documentation:

  • Updated Multipart body length limit services.Configure<FormOptions> to builder.Services.Configure<FormOptions> and updated prose from Startup.ConfigureServices to Program.cs.
  • Updated Multipart body length limit Razor Pages convention example to builder.Services.AddRazorPages(options => ...) in Program.cs.
  • Updated Kestrel maximum request body size CreateHostBuilder / ConfigureWebHostDefaults / webBuilder.ConfigureKestrel / .UseStartup<Startup>() snippet to builder.WebHost.ConfigureKestrel(options => ...) in Program.cs.
  • Updated Kestrel maximum request body size Razor Pages convention example to builder.Services.AddRazorPages(options => ...) in Program.cs.
  • Bumped ms.date to 10/03/2026.

Internal previews

File Preview link
aspnetcore/mvc/models/file-uploads.md Learn preview

Build report

@guardrex

guardrex commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks, @SkyDevLab! I'll review this on Monday morning. Have a great weekend! 🏖️🎉

@guardrex guardrex left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SkyDevLab! 🚀 I'll get this merged into the live article by EOD.

@guardrex
guardrex merged commit 3d06f3e into dotnet:main Oct 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modernize hosting-model code snippets in file-uploads.md to minimal hosting

2 participants