elysia-file-upload-multer

Community

Add secure file uploads to Elysia.js Bun backends.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill eliminates the friction and security risks of implementing file upload functionality for Elysia.js (Bun runtime) backends, avoiding brittle middleware hacks, silent nginx 413 errors, and path traversal vulnerabilities that plague ad-hoc implementations.

Core Features & Use Cases

  • Hand-rolled multipart parser (recommended for Elysia 1.2): Lightweight 80-line implementation using native Web Streams API, no extra dependencies, with built-in per-file and total request size limits.
  • Legacy Multer integration: Compatible option for older Elysia projects, with static file serving setup and MIME type filtering for allowed file types.
  • End-to-end safety and operational guardrails: Includes random on-disk storage keys to prevent path traversal, nginx configuration guidance to avoid edge-level request failures, and proper download handling to eliminate cross-tab browser warnings.
  • Use Case: A CRM development team can use this Skill to quickly add user attachment upload (PDFs, images, documents) to their Elysia API, with full backend route code, storage setup, and frontend integration examples.

Quick Start

Use the elysia-file-upload-multer skill to implement a secure 50MB file upload endpoint for your Elysia.js backend that accepts PDF and image attachments from authenticated users.

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: elysia-file-upload-multer
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#elysia-file-upload-multer

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 536,000+ vetted skills library on demand.