I have a picture upload button that automatically uploads the file when selected from the browse window.
Nonetheless, it doesn\'t work the second time around and that is
My guess is that you test your functionality with the same picture file over and over again.
If you select the same file, the onChange event of input[type=file] will not fire.
Different file with the same name would not fire the event as well. Select a different image file - it will happen.
To avoid this you can reset the form to ensure that choosing a file will be performed on a clean file control