. if ($request->get('ajax_iframe_upload', FALSE)) { return 'iframeupload'; } if ($request->query->has('_format')) { return $request->query->get('_format'); } // Do HTML last so that it always wins. return 'html'; } }