How does selenium WebDriver upload files to the browser?

Can anyone please give me a tutorial on how does selenium webdriver upload file to the browser, just wanted to know some details.