AddThisFeature

Paste Image From Clipboard

Let people paste a copied image straight into a field instead of saving a file first.

simple Media & Video

What it adds

Clipboard image paste support on the app's existing upload and editor fields.

What your agent is told to do

5
  1. 1

    Add paste handling to the surfaces where people already attach images: the comment box, the rich text or markdown editor, and any file drop zone. Do not create a separate paste-only widget.

  2. 2

    Route pasted images through the app's existing File Upload path so they inherit the same size ceiling, accepted types, storage location, malware scanning, and access rules as a chosen file.

  3. 3

    Show the image locally the moment it is pasted, with a visible progress state and a way to cancel or remove it while the upload is still running.

  4. 4

    Give each pasted image a meaningful, unique filename derived from the context and the time, since clipboard images arrive with no name of their own.

  5. 5

    Do not accept whatever the clipboard offers. When the paste is text or markup that merely references an image, insert the text as text — silently fetching a remote URL on the user's behalf is a request the app should not be making.

Edge cases it handles

8
  • A copied image from a web page often arrives as HTML containing a link rather than image data. Detect that and paste it as a link or plain text, never as a server-side fetch of a third-party URL.
  • Clipboard images have no filename. Generate one that is unique and human-readable, so a folder of attachments is not twelve files all called image.
  • The same limits must apply as any other upload. Enforce type and size checks on the server as well as the client, because a paste is just another request.
  • Show the pasted image immediately from local data while the upload runs, and make plain whether it has finished. A preview that looks identical before and after upload leads people to submit too early.
  • One paste can carry several images. Handle them all, in order, rather than taking the first and dropping the rest without a word.
  • A cancelled or failed paste upload must remove the local preview and leave no partial file in storage or stray reference in the editor content.
  • Pasting into a text field that has no attachment support must fall back to the default text behaviour instead of doing nothing.
  • Pasted screenshots frequently contain other people's data. Apply the same retention and read permissions as the record they are attached to.

Definition of done

9
  • Pasting an image into a comment box, editor, or drop zone attaches it.
  • Pasted images go through the same upload path, limits, scanning, and permissions as chosen files.
  • A local preview appears instantly and shows upload progress and completion.
  • Multiple images in a single paste are all attached in order.
  • Pasted text or markup referencing an image is inserted as text, with no remote fetch.
  • Each pasted image gets a unique, meaningful filename.
  • Cancelling or failing an upload removes the preview and leaves no orphaned file.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.