Use ls -lls -l
to view the permissions on the folder. Does the user you authenticate as have write access to that directory? If not, you need to use chmodchmod
to ensure that it does, or it will never work.
Often, FTP accounts have limited access to areas close to //
In fact, some systems are set up so they can ONLY write to /home/ftpUserName/home/ftpUserName