Skip to content

[stable34] feat: add drag-and-drop document upload to Files page#7944

Merged
vitormattos merged 2 commits into
stable34from
backport/7928/stable34
Jul 22, 2026
Merged

[stable34] feat: add drag-and-drop document upload to Files page#7944
vitormattos merged 2 commits into
stable34from
backport/7928/stable34

Conversation

@backportbot-libresign

@backportbot-libresign backportbot-libresign Bot commented Jul 22, 2026

Copy link
Copy Markdown

Backport of #7928

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Adds drag-and-drop as an additional input method for the existing
upload flow on the LibreSign Files page. Dropped files are routed
through the same validation, envelope, and upload logic as the
existing "Upload" button by extracting a shared
RequestPicker.handleFilesSelected() entry point, so there are no
separate rules for drag-and-drop vs. click-to-upload.

- FilesList.vue gains dragenter/dragover/dragleave/drop handlers on
  the page content area, with a visual drop-target overlay, gated on
  the existing canRequestSign permission.
- RequestPicker.vue's max-file-uploads and envelope-name-dialog logic
  is reused as-is; a new guard shows an error when multiple files are
  dropped while envelopes are disabled (previously unreachable via
  the single-select file picker, but reachable via drag-and-drop).

Closes #7926

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Yazeed <mnmm623@gmail.com>
Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos
vitormattos force-pushed the backport/7928/stable34 branch from e710c20 to 3ca5fb7 Compare July 22, 2026 18:48
@vitormattos
vitormattos marked this pull request as ready for review July 22, 2026 18:55
@vitormattos
vitormattos merged commit 401740c into stable34 Jul 22, 2026
61 of 63 checks passed
@vitormattos
vitormattos deleted the backport/7928/stable34 branch July 22, 2026 18:56
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants