added doneHandler so javascript can get filename when it is not in progress response. url encoding is a pita.