feat(composer): paste, drag/drop, and inline image preview for uploads #44
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/composer-paste-drop-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/api/uploadendpoint but the user still had to click the button and pick a file. Add apastelistener on the message textarea so an image copied to the clipboard uploads on Ctrl+V; pastes that contain only text are not intercepted so normal text paste keeps working.dragenter/dragleaveso the overlay does not flicker as the cursor passes over child elements;dragoveris only intercepted when the drag carries files.URL.createObjectURL. The object URL is revoked on clear, retry, or successful send so we do not leak blobs across many uploads in a single session.uploadStaged()helper as the file input so all three entry points share preview, error handling, and the clear/replace flow.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com