during upload, dialog asks for confirmation to leave the page