that easy
like
//input[@type="file"]
will point to the first input tag
and
(//input[@type="file"])[{INDEX}]
where INDEX is the number of the of the input tag
note: indexing in xpath starts from 1
OR you can use the
file_tag_list =driver.find_elements_by_xpath(//input[@type="file"])
function that the python syntax you can find it for different languages just google it.
this function will return a list of webdriver element
and then you can
file_tag_list[0].send_keys(filepath)
file_tag_list[1].send_keys(filepath)