stable
Clone or download
Read-only
Inject tus-uploaded-id (at the end of the artifact form) as hidden field(s) with value = id of a file you just uploaded via tus. submit. <input type="hidden" name="artifact[184][][tus-uploaded-id]" value="45"> <input type="hidden" name="artifact[184][][tus-uploaded-id]" value="46"> To be attached to the artifact, files: * belong to current user * are not expired * are not yet attached to an artifact Part of story #12964: drag'n drop images in tracker text areas Change-Id: I29c7231438c2f729ca8bc57aa3d7dbdb6243f57c
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentForTusUploadCreator.php | +98 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/FileOngoingUploadDao.php | +8 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/Tus/FileBeingUploadedInformationProvider.php | +6 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php | +25 | −8 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForRestCreatorTest.php | +6 | −6 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForTraditionalUploadCreatorTest.php | +6 | −6 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForTusUploadCreatorTest.php | +222 | −0 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/FormElement/Field/File/ChangesetValueFileSaverTest.php | +7 | −7 | Go to diff View file |