Hello - Does any one have a code snippet how to upload file with single button click.

Currently I have a fileuploadfield which has browse button. After user selects the file via browse button, he has to click the upload button to actually upload the file.

Can we do both operations in one single click?

Thanks
Vishal.