There are a few different ways to cancel a file transfer on a Mac. One way is to press "Command +." (the period key) while the file is transferring. This will cancel the transfer. Another way is to go to the Finder window and press "Command + Option + Esc" to bring up the Force Quit Applications window. From here, you can select the application that is transferring the file and click "Force Quit."