minimal-api-file-upload

Community

File uploads in ASP.NET Minimal APIs

Authordodyg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides guidance for implementing and securing file upload endpoints in ASP.NET Core Minimal APIs, addressing common pitfalls and best practices.

Core Features & Use Cases

  • IFormFile binding and handling for single and multiple files in Minimal APIs.
  • Comprehensive guidance on configuring size limits (Kestrel and form options) and per-endpoint overrides.
  • Anti-forgery considerations and how to opt out for API endpoints, with safety warnings.
  • Validation of content type and file signature, safe filename generation, and secure storage.
  • Streaming large uploads with MultipartReader to avoid buffering.

Quick Start

Create a minimal API endpoint to accept file uploads via IFormFile, validate type and size, and store safely.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: minimal-api-file-upload
Download link: https://github.com/dodyg/blue-nile-pds/archive/main.zip#minimal-api-file-upload

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.