upload template file