Pop-up file upload

If you are trying to upload an excel/csv file in a pop-up(Finder/file explorer), how do you automate this for testing?

Please use ‘Upload File’ keyword in this case.