Skip to content

feat: adds drag, drop and pasting of attachments#13136

Open
steven-mpawulo wants to merge 1 commit into
nextcloud:mainfrom
steven-mpawulo:feature/12687-drag-drop-paste-attachments
Open

feat: adds drag, drop and pasting of attachments#13136
steven-mpawulo wants to merge 1 commit into
nextcloud:mainfrom
steven-mpawulo:feature/12687-drag-drop-paste-attachments

Conversation

@steven-mpawulo

Copy link
Copy Markdown

Add support for attaching files via drag-and-drop and clipboard paste in the message composer.

This reuses the existing attachment upload flow to ensure consistent upload handling and validation.

Fixes #12687.

@ChristophWurst

Copy link
Copy Markdown
Member

Thanks for the feature! Code looks good on a high level. We'll test and review in detail soon.

CI is unhappy about the missing sign-off trailer in your commit.

@ChristophWurst ChristophWurst added the feature:editor All bugs, features and pull requests about the (HTML) editor label Jun 22, 2026
@steven-mpawulo

Copy link
Copy Markdown
Author

Thanks
I'll add the missing sign-off trailer and push an updated commit shortly.
@ChristophWurst

@GretaD

GretaD commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

hi @steven-mpawulo, i tested it and i am able to drag and drop some files.
I noticed a couple of problems though:

I cannot drag and drop pdf files.
When i try to add a big file, the popup that my file extends the upload limit is not shown.
Screenshot from 2026-06-22 13-52-32

@steven-mpawulo

Copy link
Copy Markdown
Author

Hello @GretaD
Let me look into these issues and resolve them accordingly.

@steven-mpawulo

Copy link
Copy Markdown
Author

@GretaD I'm a bit lost here.

If attachment-size-limit is not set, the default value is 0, which means the popup never appears.
How does the admin currently enforce file size limits?
Should we change the default value to something more reasonable?

Screenshot 2026-06-22 at 4 41 45 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement feature:editor All bugs, features and pull requests about the (HTML) editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The ability to drag and drop attachments from a folder into an email

3 participants