I have a page to upload a file. If there is a message on the page previously due to success/failure of some operation, I want it to go away as soon as I click the button to Upload a file. But I saw that update only works after the file upload completes.