Send and Receive not working properly.

Its not working on the server side I believe, not even entering the loop
to write/overwrite to the new file on server side