Here is my JavaScript:
Onsubmit should be set to uploadForm() (that is, the expression you want evaluated), not just the name of the function you want executed.