Fixes #3: partially fixed upload page bug.