Depends on D7727. This adds support for downloading a fragment and all it's children as a ZIP file. Fragments that have children automatically become directories in the ZIP file.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T4205: Implement Phragment
- Commits
- Restricted Diffusion Commit
rPccd4ae563827: Implement "Download ZIP" controller for Phragment
Downloaded a fragment as a ZIP and was able to extract the contents successfully.
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
src/applications/phragment/controller/PhragmentZIPController.php | ||
---|---|---|
80 | Probably shouldn't have the cache set to one month? |
src/applications/phragment/controller/PhragmentZIPController.php | ||
---|---|---|
36–38 | Recently, there's a slightly more convenient appendParagraph(). | |
77–83 | Although this is probably safe, it's better to write it into Files and then redirect. Files refcounts actual content blobs already, so multiple calls won't write the data multiple times. This puts us a step closer to caching this, too. You can look at DiffusionBrowseFileController->loadFileForData() for the cliffnotes version of this. |