Quality is delighting customers
I wouldn't recommend going for AutoIT as it will require the browser constantly being in focus therefore you will not be able to do anything else while your test is running. Moreover when you will be running your tests using Selenium Grid in parallel you will face issues.
More information: How can I work with file uploads during a Webdriver test?
Thanks for your quick reply.
I have tried with sendkeys, it is giving me below error.
org.openqa.selenium.WebDriverException: The element is not focusable (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
Driver info: org.openqa.selenium.edge.EdgeDriver
WebElement upload = driver.findElement(By.xpath("//input[@id="upload"]");