Basic File Transfer - Almost working

Keep getting access denied on file write in Windows, and
FileSystemException: Is a directory in Linux/Mac. Not sure why. I'm out
of Ideas for now.