Two potential solutions come to mind
one, use an OS level automation tool like AutoIt, or RAutomationto interact with the system level file selection control
two, confer with developers of the page and execute javascript to set the appropriate values as if the file selection tool had been used.