added function appserver_register_file_upload(), appserver_set_headers_sent()