You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 21e4c62 the old way of providing a download file before doing an exit() has been replaced with a response created by the responseFactory.
Since Extbase does not focus on that response only, there is additional HTML content written into the file stream, creating broken download files with binary code surrounded by HTML.
I can confirm the problem, as well as the suggested solution. It just seems that the full page is unnecessarily rendered before it switches to the downloaded PDF. Observed in Firefox with the Exception code as above. Don't forget to add the "use" statement for the exception.
With 21e4c62 the old way of providing a download file before doing an exit() has been replaced with a response created by the responseFactory.
Since Extbase does not focus on that response only, there is additional HTML content written into the file stream, creating broken download files with binary code surrounded by HTML.
According to the core docs, there should be an exception to avoid that behaviour:
https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/Extbase/Reference/Controller/ActionController.html#stop-further-processing-in-a-controller-s-action
Changing the return to
creates download files properly.
The text was updated successfully, but these errors were encountered: