refactor(rest) put cp: add putFile