How can I set a message to show when an upload file is loading?

How can I set a message to show when an upload file is loading?

We have an upload and parse script that goes through almost 2,000 records and takes a littler over 2 minutes to process.

I would like the user to see a message that instructs them to be patient and allow the file to finish processing before trying to reload or leave the page.

How can I achieve this?