"success", 'details' => $_FILES[$name] ); }else{ $ar = array( 'status' => "failed", 'details' => "" ); } // yeah, seems you have to wrap iframeIO stuff in textareas? $foo = $json->encode($ar); ?>