stable

Clone or download

Read-only

The upload of document can be canceled

This contribution adds the support of the Tus termination extension [0] To test, ask for the creation of new docman item file then call delete on the upload route. The lock on the docman item should be removed, another docman item with the same name can be created. This is part of story #10721: upload documents with drag'n drop [0] https://tus.io/protocols/resumable-upload.html#termination Change-Id: I3971944f7e82d81773e9d64e181423ba6989ee15

Modified Files

Name
M plugins/docman/include/Tus/TusDataStore.php +1 −0 Go to diff View file
M plugins/docman/include/Tus/TusServer.php +30 −2 Go to diff View file
A plugins/docman/include/Tus/TusTerminaterDataStore.php +28 −0 Go to diff View file
M plugins/docman/include/Upload/DocumentDataStore.php +13 −1 Go to diff View file
A plugins/docman/include/Upload/DocumentUploadCanceler.php +53 −0 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +5 −1 Go to diff View file
M plugins/docman/phpunit/Tus/TusServerTest.php +49 −0 Go to diff View file
A plugins/docman/phpunit/Upload/DocumentUploadCancelerTest.php +74 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +87 −0 Go to diff View file
M plugins/docman/tests/rest/DocmanDatabaseInitialization.php +4 −3 Go to diff View file