feat: Enable Direct Paste to Upload for PDF file #5777

Closed
opened 2025-11-11 16:33:27 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @happy-endless on GitHub (Jul 16, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

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

Originally created by @happy-endless on GitHub (Jul 16, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### 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_
Author
Owner

@happy-endless commented on GitHub (Jul 16, 2025):

In addition, copy-and-paste is more convenient than drag-and-drop on small screen.

@happy-endless commented on GitHub (Jul 16, 2025): In addition, copy-and-paste is more convenient than drag-and-drop on small screen.
Author
Owner

@tjbck commented on GitHub (Jul 16, 2025):

Addressed with 8807ac8cac in dev!

@tjbck commented on GitHub (Jul 16, 2025): Addressed with 8807ac8caca63adc5c5e227b69dbe7e783eeb302 in dev!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5777