
Description
minimal-api-file-upload is an agent skill from the dotnet/skills collection for building file upload endpoints in ASP.NET Core minimal APIs on .NET 8 or later. It guides an agent to handle IFormFile or IFormFileCollection parameters, and to add size limits, content type validation and streaming for large files. The skill lists its inputs: the file parameters and the maximum file or request size are required, and allowed content types or extensions are optional. It says not to use the approach for MVC controllers, where [FromForm] IFormFile works directly with attributes, or for a simple JSON body that needs no upload. For very large files over 1GB, it recommends streaming with MultipartReader instead. The skill page shows about 2.3K installs and a set of security audit results. To add it to an agent, run npx skills add https://github.com/dotnet/skills --skill minimal-api-file-upload. The skill comes from the dotnet/skills repository on GitHub, which has about 5.7K stars.…
Highlights
- Adds IFormFile and IFormFileCollection upload endpoints
- Size limits and content type validation
- Streaming guidance for large files
- Requires .NET 8 or later
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate minimal-api-file-upload.
People also visit
minimal-api-file-upload FAQ
What does this skill do?
It helps an AI agent write file upload endpoints in ASP.NET Core minimal APIs, handling IFormFile or IFormFileCollection parameters with size limits and type checks.
What inputs does it need?
The file parameters and the maximum file or request size are required. Allowed content types or extensions are optional.
When should I not use it?
For MVC controllers, where [FromForm] IFormFile works directly, for plain JSON bodies, and for files over 1GB, where the skill suggests streaming with MultipartReader.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill minimal-api-file-upload. It requires .NET 8 or later.
What are its security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best minimal-api-file-upload alternatives?
Popular alternatives to minimal-api-file-upload include aspnet-minimal-api-openapi, openai/aspnet-core and minimal-api. See all minimal-api-file-upload alternatives










