When using 'upload' toolbar menu action on documentlibrary, or using DND, the added document if already exists is not versioned. The expected behaviour is to create new document with number appended to the name to distinguish it as a different document.
The expected versioning of documents only occurs if "Upload New Version" or "check in" is done on the documents action menu.
There are business cases where the default behaviour is wanted to be versioning versus new document in the DND and upload toolbar actions. It would be advantageous to provide an alternative via configuration or quick key option to afford the ability to version versus create new document in these cases.
Customer provided patch that allows use of alt-key.
The attached patch will allow user to hold alt-key when dragging and dropping files to Share document library to create new versions.
- Alt pressed when DnD -> new version of file if file with same name exist
- Alt not pressed -> file with unique name created if file with same name exist.
Patch is for 4.3.a HEAD and modifies projects/slingshot/source/web/components/documentlibrary/documentlist.js