Change the return type of putFile