xwikisas / application-filemanager

XWiki application to manage a hierarchy of folders and files
GNU Lesser General Public License v2.1
0 stars 4 forks source link

Add warning/options when uploading a document with the same name but different case #34

Closed iuliabalan closed 3 years ago

iuliabalan commented 4 years ago

Currently, when we upload a document on File Manager if the document's name is only different by lower/upper case a new page is created (since XWiki is case sensitive). To not have duplicated documents in FM (that are only different by the name's lower/upper case) it would be nice to have a warning displayed when uploading a document, like "This document already exists. Do you want to replace it?" and the option to replace the existing document, create a new one, or cancel the upload.

iuliabalan commented 4 years ago

Confirmed with @mflorea that the user would have 3 options:

Thanks!

oanalavinia commented 3 years ago

Result:

When the similar file is uploaded, a popup is displayed with the upload actions that can be selected:

The modal is displayed also if a file with the same name is uploaded

modal2

modal1