Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing usage of forbidden_chars for file/folder uploads #6447

Closed
nc-fkl opened this issue Feb 15, 2024 · 2 comments
Closed

Implementing usage of forbidden_chars for file/folder uploads #6447

nc-fkl opened this issue Feb 15, 2024 · 2 comments
Labels
enhancement enhancement of a already implemented feature/code feature-request new feature hotspot: filename handling Filenames - invalid, portable, blacklisting, etc.

Comments

@nc-fkl
Copy link

nc-fkl commented Feb 15, 2024

How to use GitHub

  • Please use the 👍 reaction to show that you want to have the same feature implemented.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature description

Hi Desktop Team,

there is a forbidden_characters=[....] feature in the WebUI that disallows the usage for renaming/uploading/moving of files & folders with specific characters that are forbidden.
Could we also implement this in the Desktop Client so that it is in sync with the frontend?

Thank you for your effort! :)

@susnux
Copy link

susnux commented Feb 23, 2024

For implementation: This PR will add the characters to the capabilities:
nextcloud/server#43775

  • Get the capability "forbidden_filename_characters" from the files app.
  • This is an array of forbidden characters (could be multibyte characters, so it is an array of strings).
  • If any of the strings in the array matches the filename it is considered invalid.

@claucambra
Copy link
Collaborator

This is now implemented since 3.14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement of a already implemented feature/code feature-request new feature hotspot: filename handling Filenames - invalid, portable, blacklisting, etc.
Projects
None yet
Development

No branches or pull requests

4 participants