AI Prompts for File Uploads: Free AI Prompt | SheCodes

Free AI prompt · The Code Book

AI Prompts for File Uploads

A ready-to-use prompt from the chapter File Uploads. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“Add a multi-file upload for a photo gallery. Let users drag up to 10 images at once. Show thumbnails with individual progress bars and remove buttons for each file.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

AI Prompts for File Uploads

“Add an image upload with drag and drop, preview, and 5MB limit. Accept only JPG, PNG, and WebP. Show an error message if the file is too large or wrong type.”

AI Prompts for File Uploads

“Add a profile photo upload that shows a circular preview of the selected image. Include a 'Remove' button. Resize the image to 400x400 on the server before saving.”

AI Prompts for File Uploads

“Set up Uploadthing for file uploads in my Next.js app. Create an upload endpoint that accepts images up to 4MB and PDFs up to 16MB. Show upload progress in the UI.”

AI Prompts for File Uploads

“Add a document upload form that accepts PDFs and CSV files. Show the file name and size after selection. Upload to Supabase Storage and save the URL in the database.”

Set up a frontend project

“Set up a new Next.js project with TypeScript, Tailwind CSS, and App Router. Create a clean homepage with a [header/hero/features] layout.”

Add multi-page navigation

“Convert my single-page app into multiple pages with proper navigation. Add routes for [home, about, dashboard, settings].”