Question: how to transfer files to a raspberry pi?
Answer: Enable SSH. Because SCP is based on the SSH protocol, you'll need to enable SSH on your Pi before you can use this method. ... 
Find your Pi's IP. Next you'll need to find the IP Address of your Raspberry Pi. ... 
Copy files with the SCP command.