So request the API query in a different format that is text. jsonfm is a good example

On Sat, Aug 15, 2009 at 6:24 AM, Michael Dale <> wrote:
Would anyone object to changing the output mime type of
ApiFormatJson.php from "application/json" to 'text/javascript' ?
committed in r55084

This is needed for iframe target background upload tasks. ie you upload
a file and then you want to take the name of the file you uploaded and
use that to insert the image into the edit window. With mime as
"application/json" the browser promts the user to "save" the file and we
can't eval the document text result in the iframe.


Mediawiki-api mailing list