android icon indicating copy to clipboard operation
android copied to clipboard

Implementing usage of forbidden_chars for file/folder uploads

Open nc-fkl opened this issue 1 year ago • 1 comments
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! :)

nc-fkl avatar Feb 19 '24 08:02 nc-fkl

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.

susnux avatar Feb 23 '24 01:02 susnux