镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Bug]: Remove files from the list of recent items in the move/copy modal #50199

Description

@maximelehericy

⚠️ This issue respects the following points: ⚠️

Bug description

hello hello, usually, in any system, it is not possible to move a file or a folder inside a file (yes, inside a file). But apparently, in Nextcloud, that is possible 🙃

Image

Steps to reproduce

  1. right click on an item, then click copy/move
  2. when the modal appears, select the recent entry in the left menu
  3. wait a bit that it loads
  4. you now have the opportunity to move a folder inside a file 🪄

Expected behavior

Files should not appear in the Recent list

Nextcloud Server version

30

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

c.nc.c

Activity

  1. susnux commented on Jan 16, 2025

    @susnux
    Contributor

    Expected behavior

    Files should not appear in the Recent list

    @nextcloud/designers so should we hide files in the filepicker when we copy / move a file?
    Or alternative: Allow to overwrite a file if it is a file instead of folder.

  2. moved this to 🧭 Planning evaluation / ideas in 🖍 Design teamon Jan 16, 2025
  3. marcoambrosini commented on Jan 20, 2025

    @marcoambrosini
    Member

    I agree that we should hide the files, nice catch @maximelehericy

    We should also grey them out in the other lists

  4. nextcloud-command commented on Feb 20, 2025

    @nextcloud-command
  5. Phoenix616 commented on Feb 20, 2025

    @Phoenix616
  6. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Feb 20, 2025
  7. 21 remaining items

  8. changed the issue type fromtoon Nov 7, 2025
  9. moved this from Triaged to Confirmed in 🧑‍🤝‍🧑 Community triageon Nov 7, 2025
  10. susnux commented on Nov 7, 2025

    @susnux
    Contributor

    wait for the recent items to show up -> usually 99% files in there (at least on c.nc.c)

    I guess in the "Recent" view, we can go further and filter out nodes without creates permissions.

    This does not work. You can also pick other files (different purpose).

    I think in recent we can the mime filter to hide them instead of grey out if they are files.

  11. artonge commented on Nov 12, 2025

    @artonge
    Collaborator

    This does not work. You can also pick other files (different purpose).

    To be more explicit, we can filter out nodes if canPick(node) is false. That should be ok no matter the purpose.

  12. jancborchardt commented on Dec 2, 2025

    @jancborchardt
    Member

    @artonge by "filter out" you mean "grey out", right? Cause the "Recent" view in the file picker should have the exact same items as the Recent view in the Files app, so you have a sense of space. (Except the visual greying out of course.)

  13. Phoenix616 commented on Dec 2, 2025

    @Phoenix616

    Files should be filtered out as in removed, not displayed in a muted color. Files cluttering the dialog when what you want to see is folders is what makes the dialog itself unusable and is the very core of this issue.

  14. maximelehericy commented on Dec 3, 2025

    @maximelehericy
    Author

    @jancborchardt I think you are missing the fact that the very first action triggering this issue is a copy/move command. As you can't move or copy something into a file (unless you know a magic trick 😛 🪄 ), it makes no sense to display files in the UI.

  15. jancborchardt commented on Dec 3, 2025

    @jancborchardt
    Member

    In every "Move" or "Copy" or "Save as" dialog on normal operating systems you will also see files next to folders.

    Files showing (of course greyed out here) gives you important context that you are in the right folder, and also assures you that your files are still there.

  16. jancborchardt commented on Dec 3, 2025

    @jancborchardt
    Member

    I do agree btw that the "Recent" view has too much noise, as in files and folders from other people. But fixing that is a separate issue.

  17. changed the title [-][Bug]: remove files from the list of recent items in the move/copy modal[/-] [+][Bug]: Grey out files in the list of recent items in the move/copy modal[/+] on Dec 3, 2025
  18. moved this from 🎉 Done to 🏗️ At engineering in 🖍 Design teamon Dec 3, 2025
  19. changed the title [-][Bug]: Grey out files in the list of recent items in the move/copy modal[/-] [+][Bug]: Remove files from the list of recent items in the move/copy modal[/+] on Dec 3, 2025
  20. jancborchardt commented on Dec 3, 2025

    @jancborchardt
    Member

    So I checked it on our instance and recents is really quite bad. I don’t even see folders cause there is so much noise.

    Again, I would say the real problem here is that "Recents" is way overfilled and we should tackle to make it more relevant to oneself, FYI @sorbaugh

    But yeah probably it’s a good quick fix to not show files specifically in the recent view of the move/copy modal.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care of30-feedbackdesignDesign, UI, UX, etc.enhancementpapercutAnnoying recurring UX issue with possibly simple fix.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions