'_blank') ); $json['type'] = api_htmlentities($file['type']); $json['size'] = format_file_size($file['size']); } if (isset($result['url'])) { $json['result'] = Display::return_icon( 'accept.png', get_lang('Uploaded') ); } else { $json['result'] = Display::return_icon( 'exclamation.png', get_lang('Error') ); } echo json_encode($json); } break; default: echo ''; break; } exit;