When responding with some content in the controller, the plugin was getting the HTML content through the "body" tag, but content types such as application/json or text/plain has the "pre" tag instead of "body".
This PR fixes the uploadDone function to use the "body" tag with html content type and "pre" with others, so the response in controller can now be application/json without problems.
When responding with some content in the controller, the plugin was getting the HTML content through the "body" tag, but content types such as application/json or text/plain has the "pre" tag instead of "body".
This PR fixes the uploadDone function to use the "body" tag with html content type and "pre" with others, so the response in controller can now be application/json without problems.
7