added plain file upload to java lib