mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
feat: Enable Direct Paste to Upload for PDF file #5777
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @happy-endless on GitHub (Jul 16, 2025).
Check Existing Issues
Problem Description
Currently, attaching a document in OpenWebUI means clicking the “+ Upload” button or dragging a file from explorer—steps that interrupt the flow of conversation and broken thinking. I have pay many attention to find the file I want to chat. In many cases, the PDF or other document I want to chat in OpenWebUI is already in my clipboard (for example, after saving it from an email, copying it from another app, using a keyboard shortcut to get the file to clipboard directly, or copy the downloaded file in a browser).
In this case, it would be much more natural and efficient if I could simply press Ctrl/Cmd + V in the chat composer—just as I would for pasting an image—to invoke the existing upload pipeline. Adopting this “paste-to-upload” pattern, familiar from many modern collaboration tools, would keep conversations fluid and reduce unnecessary friction when sharing documents. I hope you’ll consider adding this feature in a future release.
Desired Solution you'd like
Allow the Rich Text Input component to detect when the user pastes a file (PDF, DOCX, etc.) and automatically trigger the existing upload pipeline (the behavior just like paste a picture).
Alternatives Considered
No response
Additional Context
No response
@happy-endless commented on GitHub (Jul 16, 2025):
In addition, copy-and-paste is more convenient than drag-and-drop on small screen.
@tjbck commented on GitHub (Jul 16, 2025):
Addressed with
8807ac8cacin dev!