simple file upload written in javascipt, java and python