fix fileupload template, closes #165