This example sends files as soon as they have been selected. You cannot select more than once the same file. HTML5 form validation works, you can not sublit the form if there are invalid fields.
Notice that the JavaScript source code uses localStorage to save/restore form content as we type, and selected files as we select them. Reloading the page will restore the entered values. We saw this technique in the HTML5 part 1 course.