file-uploads

Automates secure file uploads to S3 or Cloudflare R2 via presigned URLs and multipart transfers.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/TwuanMinn/fadelab --skill file-uploads-twuanminn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-uploads
Source: https://github.com/TwuanMinn/fadelab/tree/main/.agent/skills/skills/file-uploads
Command: npx skills add https://github.com/TwuanMinn/fadelab --skill file-uploads-twuanminn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill abstracts the complexities of receiving user files, validating and safely storing them in cloud storage, while enabling scalable handling of large uploads.

Core Features & Use Cases

  • Secure uploads to S3 or Cloudflare R2 with optional presigned URLs.
  • Support for multipart uploads and streaming to prevent blocking on large files.
  • Basic image optimization and content-safety checks to minimize risk.

Quick Start

Upload a file and store it securely to S3 or Cloudflare R2 using a presigned URL.

Frequently Asked Questions about file-uploads

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle large file uploads to S3 without blocking the web server?

To handle large file uploads without blocking, use multipart uploads and streaming to transfer chunks directly to S3 or Cloudflare R2. This prevents server blocking and ensures scalable cloud storage management for large payloads.

What is a presigned URL and when should I use it for file uploads?

A presigned URL is a secure, time-limited link allowing clients to upload files directly to S3 or Cloudflare R2. Use presigned URLs to offload upload traffic from your server and securely manage file transfers.

How do I validate file types and sanitize filenames during secure uploads?

To validate file types and sanitize filenames during secure uploads, check metadata and content-safety before transferring. Sanitizing filenames and validating sizes minimizes risk before storing files in cloud storage.

Does this file upload approach work with both S3 and Cloudflare R2?

Yes, this file upload approach works with both S3 and Cloudflare R2. It supports generating presigned URLs and multipart workflows for either platform, allowing flexible and scalable cloud storage management.

What is the best way to securely receive user files in a web application?

The best way to securely receive user files in a web app is to validate file types and sizes, sanitize filenames, and use presigned URLs or streaming for cloud storage. This abstracts complexities while ensuring safe file handling.