There’s this awesome method in Watir called file_field. It basically references any input of type = “file” and follows the prompts to push the file you give through the submit process.
Here’s an example of how I’m doing it:
For windows to work, I did have to escape the \ with double \\.
But it works like a charm!