Support upload of locally defined templates