driver.find_element_by_css_selector('input[type="file"]').clear()
driver.find_element_by_css_selector('input[type="file"]').send_keys(
    'C:\\Documents and Settings\\pcname\\Desktop\\ffdlt\\test.jpeg')
selenium webdriver upload file