Add javascript rebinding for file upload and then cancel.  Bug #3942