Add resttemplate settings, add file upload