fix path to template for media upload