Added templates configuration option to the Upload API