#252 Fixed the javascript modal file upload with Geoff's help.