admin - bug fix in template file upload.