Detail
#24644
Upload of a document version via drag & drop without lock not possible
With the changes in #24375, uploads of new versions for already existing documents are possible without manual locking of the document. However, the FolderFileDropHandler still does not allow an upload by drag & drop and requests with error message the previous locking of the document. However, the upload should be enabled in this case.
Conversion
The FolderFileDropHandler now has a new field boolean _manualLocking and a corresponding constructor to store whether manual locking by the user is required or 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 of an already existing document via drag & drop in a WebFolder where automatic locking is applied. The document should be uploaded without error message and create a new version.
Code Migration
WebFolderUIFactory.createControl(..., FileDropHandler) has received the additional parameter FileDropHandler. A suitable FileDropHandler can be implemented or null can be passed if the folder should not support dropping of files. The user gets an information that an upload is not possible when dragging a file over the folder without FileDropHandler. \\ The constructor FolderControl(FolderData data, BreadcrumbRenderer breadcrumbRenderer, ITableRenderer tableRenderer, FileDropHandler fileDropHandler) does not need the parameter boolean uploadPossible anymore. Therefore it must be removed.