minor
#24644
Upload of a document version via drag & drop without lock not possible
Thanks to the changes in #24375, it is now possible to upload new versions of existing documents without having to manually lock the document. However, the FolderFileDropHandler still does not allow uploads via drag-and-drop and displays an error message requiring the document to be locked first. In this case, however, the upload should be allowed.
Implementation
The FolderFileDropHandler now has a new boolean field, _manualLocking, and a corresponding constructor to store whether manual locking by the user is required or whether the document should be locked automatically. The new option is taken into account when uploading or updating a document and allows uploads with automatic locking.
Test
Upload an existing document via drag-and-drop into a WebFolder that uses automatic locking. The document should upload without an error message and create a new version.
Code Migration
WebFolderUIFactory.createControl(..., FileDropHandler) has been extended with the additional parameter FileDropHandler. A suitable FileDropHandler can be implemented, or null can be passed if the folder is not intended to support file drops. When a user drags a file onto a folder without a FileDropHandler, they receive a message indicating that an upload is not possible. \\ The constructor FolderControl(FolderData data, BreadcrumbRenderer breadcrumbRenderer, ITableRenderer tableRenderer, FileDropHandler fileDropHandler) no longer requires the boolean uploadPossible parameter. Therefore, this parameter must be removed.