Upload permissions and template.