/** * @see wcf\action\AJAXInvokeAction::sendResponse() */ protected function sendResponse() { if (!isset($_POST['isFallback'])) { parent::sendResponse(); } // IE9 is mad if iframe response is application/json header('Content-type: text/plain'); echo JSON::encode($this->response); exit; }
/** * @see wcf\action\IAction::readParameters() */ public function readParameters() { parent::readParameters(); $this->parameters['__files'] = UploadHandler::getUploadHandler('__files'); }