Does Selenium support upload?

Does Selenium support upload?

Selenium webdriver can be used to upload files to the browser. This is accomplished via the element’s sendKeys() method, which selects the file by supplying the path of the file to be uploaded.

How does selenium webdriver upload files to the browser?.