stable
Clone or download
Read-only
When the upload is finished, we should generate a thumbnail if the file is an image, just like when we use the web ui to add attachment. The thumbnail can be reached via (for example): /plugins/tracker/attachments/preview/123-Lenna.png (original file being /plugins/tracker/attachments/123-Lenna.png) The thumbnail is removed when the corresponding file is expired and the daily cleanup is run. Part of story #12964: drag'n drop images in tracker text areas Change-Id: Id67d9d7633a842ce46d10b6f0cde613fbec81132
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentController.php | +10 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/FileUploadCleaner.php | +34 | −22 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/Tus/FileDataStore.php | +14 | −8 | Go to diff View file |
A | plugins/tracker/include/Tracker/FormElement/Field/File/Upload/Tus/FileUploadFinisher.php | +71 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Tracker_FileInfo.class.php | +7 | −2 | Go to diff View file |
M | plugins/tracker/include/trackerPlugin.class.php | +6 | −4 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentControllerTest.php | +140 | −0 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/FormElement/Field/File/Upload/FileUploadCleanerTest.php | +39 | −41 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/FormElement/Field/File/Upload/Tus/FileUploadFinisherTest.php | +71 | −0 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/FormElement/Field/File/Upload/Tus/_fixtures/Lenna-expected-thumbnail.png | Binary file | Go to diff View file | |
A | plugins/tracker/phpunit/Tracker/FormElement/Field/File/Upload/Tus/_fixtures/Lenna.png | Binary file | Go to diff View file |