closes #1824
#1824
fixed file upload checks
latest templates.js, fixes #1823