server icon indicating copy to clipboard operation
server copied to clipboard

Prevent upload of file with names having a case clash with olther file names in the same folder

Open mgallien opened this issue 3 years ago • 2 comments

Currently it is possible for files to be uploaded with names only differing in casing. For example owl.gif and OWL.GIF can be uploaded in Test. In this case, users running a desktop client to sync their files on operating system like windows and macOS will have to manually fix those name clash to prevent sync errors (see https://github.com/nextcloud/desktop/issues/4963).

It would be nice to be able to configure the server to block any upload (or other file operations) that would create such a case clash. That would put the burden of solving the issue on the user creating the case clash and not on the user syncing the files.

mgallien avatar Sep 21 '22 09:09 mgallien

@tobiasKaminsky

mgallien avatar Sep 21 '22 09:09 mgallien

@AndyScherzinger @jancborchardt I think we discussed this already at some time. The question is when and who shall take action

  • the one that creates the problem: obviously this works for them, so they help to avoid such problems for others
  • the one that has the problem. Downside here is that it is already synced to server and then needs to be rolled out to all others

Config flag sounds good as the server admin knows if such a hybrid environment is used at all. If e.g. only Windows clients are used, then there is no such problem possible.

Famous question: Do you know how other do this? e.g. Dropbox?

tobiasKaminsky avatar Sep 21 '22 10:09 tobiasKaminsky

Doing it with approach in https://github.com/nextcloud/desktop/issues/5099

tobiasKaminsky avatar Nov 21 '22 15:11 tobiasKaminsky