'How do I close windows file upload window in java/katalon/selenium?

I am trying to test uploading a file to a site in chrome but when the upload file button is pressed it automatically opens the windows file prompt. I need to be able to close the upload file prompt in the case when a file is not uploaded. Is there a way to either prevent this prompt from appearing in the first place, or close it after it opens? I cannot use the java robot, it does not work on the system that this test will be run on.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source