nextjs-api-file-upload

Community

Upload files in Next.js API routes.

Authorpmarashian
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of handling file uploads within Next.js API routes, specifically for the App Router, by guiding developers away from problematic middleware and towards the recommended built-in methods.

Core Features & Use Cases

  • Correct File Handling: Utilizes request.formData() for efficient file processing in API routes.
  • Avoids Blocking Middleware: Prevents the use of Express-style middleware like multer that can cause request pipeline hangs.
  • Use Case: Implement a secure and performant file upload feature for user-submitted content in a Next.js application.

Quick Start

Use the nextjs-api-file-upload skill to handle a file upload in your Next.js API route.

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: nextjs-api-file-upload
Download link: https://github.com/pmarashian/cursor-agent-skills/archive/main.zip#nextjs-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 223,000+ vetted skills library on demand.