UploadThing: the open-source thing for uploading files in React, Solid, and Next.js

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Engineers can drop a maintained, self-hostable file-upload pipeline into React, Solid or Next.js projects instead of hand-building S3 presigned-URL plumbing.

Read this as

UploadThing is a free, open-source tool from the team behind T3 and tRPC that handles file uploads for websites built with React, Solid, or Next.js. Normally, adding an upload button means writing lots of code for progress bars, size limits like 4MB image checks, and error messages. UploadThing lets developers describe what files they accept in a few lines and gives them ready-made buttons and hooks. It can be self-hosted, so teams avoid vendor lock-in.

UploadThing, from the pingdotgg team behind T3 and tRPC, is an open-source file upload layer for React, Solid, and Next.js that replaces bespoke S3 presigned-URL plumbing. Its main commercial appeal is low vendor lock-in: the library is self-hostable and deployable anywhere, though hosted instances are also offered. Teams building new apps save engineering time on a solved problem; incumbent upload SDK vendors face a credible free alternative.

UploadThing provides server-side upload endpoints plus a client useUploadThing hook and optional UI components (drag-and-drop styling, file previews) for React, Solid, and Next.js. Endpoints are declared with createUploadthing and declarative constraints such as maxFileSize: 4MB, with a FileRouter type exported from the server. Middleware on upload routes integrates existing auth, and callbacks fire after files land. Self-hosting and hosted deployment are both documented; the repo includes example Next.js and Solid apps.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

UploadThing React Solid Next.js T3 tRPC pingdotgg

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading