Is it possible to do something similar to the HTML input type="file" feature?

For example, user browsed their computer, selects a file and it attaches itself to my outgoing form.