stable
Clone or download
Read-only
Part of request #28830 replace File upload streams by TUS client How to test: - If you provide a Description for a File in POST /tracker_fields/:id/files, it will be saved in the `tracker_fileinfo` DB table. It is not provided by existing callers so it is optional, to avoid causing a breaking change. If null, it is defaulted to an empty string, so the same behaviour as before is preserved. No functional change on image drag/drop in Trackers. Change-Id: I9ef134065c34ab25f2b632f911e91fc953c13901
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/v1/FileCreator.php | +2 | −4 | Go to diff View file |
M | plugins/tracker/include/REST/v1/FilePOSTRepresentation.php | +8 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/FileOngoingUploadDao.php | +10 | −24 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/FileToUploadCreator.php | +20 | −29 | Go to diff View file |
A | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/NewFileUpload.php | +60 | −0 | Go to diff View file |
D | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/UploadCreationFileMismatchException.php | +0 | −29 | Go to diff View file |
A | plugins/tracker/tests/unit/REST/v1/FileCreatorTest.php | +164 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/FormElement/Field/File/Upload/FileToUploadCreatorTest.php | +60 | −101 | Go to diff View file |
A | plugins/tracker/tests/unit/Tracker/FormElement/Field/File/Upload/NewFileUploadTest.php | +74 | −0 | Go to diff View file |