convex-file-storage

Installation
Summary

Complete file handling with uploads, URL serving, generated file storage, deletion, and metadata access in Convex.

  • Supports three-step upload flow: generate upload URL via mutation, POST file to storage endpoint, save reference to database
  • Serves files via automatic URL generation and handles diverse file types (images, PDFs, videos) with type-specific display logic
  • Stores generated files from actions (PDFs, images) directly to storage using ctx.storage.store() with Blob conversion
  • Accesses file metadata including creation time, SHA256 hash, content type, and size via the _storage system table
  • Includes client-side validation for file type and size, preview generation, and cascading deletion of storage and database records
SKILL.md

Convex File Storage

Handle file uploads, storage, serving, and management in Convex applications with proper patterns for images, documents, and generated files.

Documentation Sources

Before implementing, do not assume; fetch the latest documentation:

Instructions

File Storage Overview

Related skills
Installs
1.9K
GitHub Stars
396
First Seen
Jan 24, 2026