⚙️ Engineering Awaiting Security Review

S3 File Storage Patterns

Implement file upload and storage with S3-compatible services. Generates presigned URL flows, multipart uploads, image processing pipelines, and CDN configurations for AWS S3, Cloudflare R2, and MinIO.

This skill helps you build file storage features using S3-compatible APIs. It generates presigned URL upload flows for direct browser-to-S3 uploads, implements multipart upload for large files, creates image processing pipelines with Sharp, configures CDN delivery, and handles access control policies.

s3 file-storage uploads cloudflare-r2 presigned-urls

When to use

Use when adding file uploads to your app, implementing image/video storage, creating document management features, or migrating between S3, R2, and other object storage providers.

Examples

Presigned upload flow

Implement secure direct-to-S3 uploads

Build a presigned URL upload flow — API generates signed URL, frontend uploads directly to S3, then notifies backend with file metadata

Image CDN pipeline

Process and serve images through CDN

Create an image upload pipeline that resizes to multiple sizes, converts to WebP, stores in R2, and serves through Cloudflare CDN