joomla/joomla-cms — pull request #240 by okonomiyaki3000 (2012-06-15 08:51:11+00:00)
Title: Only request JSON format if the flash uploader is being used.

Don't use the 'component' template
Make sure we have a return url
Make sure we have a proper uploaded file array