Open
Description
I propose to remove the Rack Middleware that alters some headers for the iframe transport.
- In the past (and currently) the required patches to the jquery-file-upload javscript sources have often been neglected, so it was mostly not active
- It is not generally needed, if the proper content type is returned from the controller that handles uploads and the jquery file upload wiki already contains instruction on how to do that
- It modifies the body to add some wrapper html code to inject original response data, which is no longer present in recent versions of rails due to the streaming support wrapping the original rack response
- Above mentioned wrapper html breaks non-html content handling in the jquery iframe transport (json, xml, script), because the transport expects the iframe body to contain either json, xml or javascript, but not the html/textarea wrapper added by the middleware
It's also hard to adapt the middleware to handle all the different cases of data that might be returned and is supported by the jquery iframe transport, so this is better handled inside the app's controller.
Metadata
Metadata
Assignees
Labels
No labels