If you have access to the PTC elearning materials, I recommend you search for File Transfer there should be a whole chapter on it.
the basics would be.
1. EMS enabled for file Transfer with a Repository defined
2. A matching RemoteThingWithFileTransfer in the Model
3. A File Repository in the Model
4. use the FileTransferSubsystem Copy service.