android
android copied to clipboard
Implementing usage of forbidden_chars for file/folder uploads
trafficstars
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 Android 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 Android Client so that it is in sync with the frontend?
- https://github.com/nextcloud/server/pull/40585
- https://github.com/nextcloud/server/issues/38614
- https://github.com/nextcloud/server/issues/43423
Thank you for your effort! :)
For implementation: This PR will add the characters to the capabilities: https://github.com/nextcloud/server/pull/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.