Flows category icon
App Builder
Intermediate

File Upload System

Build real file uploads with validation, progress, storage, and display - files must survive refresh.

6 steps19 verify checks45-90 minutesWorks with: emergent · chatgpt · claude · cursor
Start Guided Walkthrough

The Route

0/6 verified

Context Pack

Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.

Context Pack
PROJECT CONTEXT:
I am building an app where users upload files (images or documents) that must be stored and displayed.

GOAL:
Implement working upload, validation, storage, listing, and deletion of user files.

REQUIREMENTS:
- File picker with type and size validation
- Upload progress and error states
- Files actually stored (server storage or base64/db for MVP)
- Uploaded files listed and viewable after refresh
- Delete with confirmation that removes the stored file

CONSTRAINTS:
- A preview from createObjectURL is not an upload - files must persist
- Enforce type/size limits on the backend too
- Every file must be linked to its owner

DEFINITION OF DONE:
- A file uploads with visible progress
- It appears in the list and survives refresh
- Invalid type/size is rejected with a clear message
- Delete removes it permanently

COMMON FAILURES TO AVOID:
- Local preview shown as if uploaded, gone after refresh
- No size/type validation on the server
- Uploads that overwrite files with identical names
- Broken image links because paths/URLs are wrong

Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.

Related routes

More App Builder flows that share ground with this one.

Flows category icon
App Builder
Generated

Add Real-Time Presence Indicators to a Chat App with WebSockets

A step-by-step flow for implementing real-time online, offline, and typing presence in a chat app using WebSockets, including backend presence tracking, frontend updates, reconnect handling, and verification.

01Inspect the existing chat architecture and choose presence data flow
02Define the presence event contract and server-side state model
03Implement authenticated WebSocket connection handling on the server

+7 more steps to Done

Best forbuilders who have shipped a basic app before

10 steps60-120 minutesIntermediate
Flows category icon
App Builder
Generated

Add Team Invites to a SaaS App

Build a real team invitation system for a SaaS app, including invite creation, email/share flow, acceptance, membership creation, role assignment, validation, and end-to-end testing.

01Audit Existing Team, User, and Auth Models
02Add Invitation Data Model and Migration
03Implement Secure Invite Creation API

+7 more steps to Done

Best forbuilders who have shipped a basic app before

10 steps60-120 minutesIntermediate
Flows category icon
App Builder
Generated

Add a Working Team Invite System to a SaaS App

Build a real invite flow for a SaaS app so existing users can invite teammates by email, store invite records, validate tokens, accept invitations, and join the correct workspace with proper permissions.

01Audit the current auth and workspace model
02Add the invite data model and migration
03Build secure invite creation on the server

+6 more steps to Done

Best forbuilders who have shipped a basic app before

9 steps60-120 minutesIntermediate

Made with Emergent