How can I trigger a download with typo3/extbase?
问题 I'm using Typo3 with extbase and fluid. I have a Controller with an action called downloadAction() . After calling the action the system tries to render the download-template (but I just want to start a download). public function downloadAction($id) { // create file // send header // dump file // exit } How can I dump the created download-File and send a download header instead of the normal render process? What is the best way? Thanks 回答1: I did this in a project some months ago, it's pretty