stable

Clone or download

Read-only

Attach tus uploaded file to artifact via REST

Use tus to upload a file in tracker Submit (POST) or update (PUT) an artifact by giving the id of the file in the attachment field value. => file is attached to the artifact No changes for temporary files. No changes for update artifact via web UI. Part of story #13453: finish drag'n drop images in tracker text areas Change-Id: I20667386bc86cab4f6c9c0eab5303ba0e85e5854

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentForTusUploadCreator.php +10 −32 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/FieldDataFromRESTBuilder.php +54 −26 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/File/FileInfoForTusUploadedFileReadyToBeAttachedProvider.php +86 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +24 −9 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForTusUploadCreatorTest.php +29 −124 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/FieldDataFromRESTBuilderTest.php +67 −15 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/File/FileInfoForTusUploadedFileReadyToBeAttachedProviderTest.php +178 −0 Go to diff View file
M plugins/tracker/tests/rest/TrackerFields/TrackerFieldsTest.php +39 −1 Go to diff View file