Try listing the current directory before the put. Perhaps your cwd command isn't putting you where you think it is. I've seen (and use daily!) an ftp server that lets you cwd to anywhere you like without giving you an error. Until you actually try to
do something, in which case you get the "Access is denied" message.
OBTW: why are you escaping forward slashes?
...roboticus