Skip to content

Enhanced attachments support#2235

Open
mejo- wants to merge 15 commits intomainfrom
feat/folder_attachments
Open

Enhanced attachments support#2235
mejo- wants to merge 15 commits intomainfrom
feat/folder_attachments

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Feb 4, 2026

📝 Summary

This PR enhances the attachment sidebar tab.

  • Upload/rename/delete attachments
  • Upload attachments via drag & drop into sidebar
  • Insert attachments into page content via drag & drop
  • List files that live in the folder directory as "Files next to page"
  • Resolves: Enhanced file management in collectives #1773

Requires nextcloud/text#8238 and nextcloud-libraries/nextcloud-vue#8169 (released).

🖼️ Screenshots

Attachments sidebar With drop area (on dragover) Attachment actions Rename modal
image image image image
Extra files actions Extra files info box
image image

🚧 TODO

  • Highlight attachments that are embedded in content.
  • Allow to undo deleting an attachment.
  • Add link to attachments folder in files?
  • Behat tests
  • Cypress tests

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@mejo- mejo- self-assigned this Feb 4, 2026
@mejo- mejo- requested a review from marcoambrosini February 5, 2026 08:26
@mejo- mejo- force-pushed the feat/folder_attachments branch from 58f62db to 1ef1512 Compare February 5, 2026 09:38
@max-nextcloud
Copy link
Collaborator

Thanks a lot for tackling this! Looks great already.

Just based on the screenshots I have a few remarks.

Drop zone

I'd say always indicate the possibility to drag files in, even though less prominent. Maybe just [+ Upload] or drag files here.

Files next to page

If I have a Protocols page and a Today subpage that is a plain Today.md file... would the files in the Protocols folder also show in the Today subpage? I assume not - but the wording sounds like they do.

How about we rename the tab to Files and list all files there without separation. Files that have been attached to the page get an extra button next to the three dot menu that shows them in the page. This button could be a pin or an attachment symbol.
We could still sort the attached files to the top. But maybe it's even nicer to have a newly uploaded file on the top so it's easy to find.

mejo- added 12 commits February 5, 2026 12:17
Allows to open, download and delete attachment files from page folder.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
We still list folder attachments, but don't allow to modify them.

We don't want to hide folder attachments as users might have added
them e.g. via local file sync, but we don't want to emphasize their
usage either.

Also fixes filename encoding when restoring deleted attachments with
special characters.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the feat/folder_attachments branch from 1ef1512 to c4d024a Compare February 6, 2026 10:12
mejo- added 3 commits February 6, 2026 16:19
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the feat/folder_attachments branch from c4d024a to 561c135 Compare February 6, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhanced file management in collectives

2 participants