nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.37k stars 4.07k forks source link

When changing file extension ask for confirmation #46528

Open T0mWz opened 3 months ago

T0mWz commented 3 months ago

We sometimes see users changing a file name, unintentionally / unknowingly deleting the extension dot or removing the whole extension. After which they cannot open the document because it is no longer recognized as such, resulting in user confusion.

Where on an operating system is explicitly asked for confirmation when accidentally changing / deleting an extension. Is there a possibility to check if there is still an extension present when editing, or else give a notification?

Example what an OS will ask you, by changing an extension. remove_extension change_extension

jancborchardt commented 1 month ago

Sounds reasonable and helpful indeed. @sorbaugh @AndyScherzinger @marcoambrosini for Files planning.

AndyScherzinger commented 1 month ago

I'd agree, while @T0mWz mentioned the OS level. So yes, I think this seems reasonable in general and something you can catch on the client level, so (since we are in the server repo) it makes sense to catch this in the WebUI and is would likely also be easily doable for the Mobile apps, yet for Desktop OS we would need to rely on the OS either asking the user, or not asking the user. Screenshots are from MacOS, but I can't say how the different Linux distros or rather their Desktop/file manager handle such renames - Windows behaves the same way like MacOS.

So I would say web and Mobile should check if the file extensions (characters after the last dot changed) and if so launch an expicit confirmation screen with an explanation of the potential consequences as shown above.

jancborchardt commented 1 month ago

Yup, that’s how I also understood, as a function of the web interface (and mobile, yup).

sorbaugh commented 1 month ago

This would be a really nice QoL improvement. We'll look into it.

sorbaugh commented 1 month ago

This is a Frontend only task.

Some notes:

Estimation: 3-5 days

sorbaugh commented 1 month ago

Assigning @Fenn-CS