BRANCH 4.2: Made new upload work with Java applet