Allow template parameters to be overridden using uploads.locals object