Is it possible to preview image (automatically) after user load a image in 'upload button' without clicking any other 'button' for uploading

plz read the question carefully
i want to upload files without clicking a “button”
i want something that automatically starts ‘startupload()’ function while user chooses a file.