FTP file to specific path on server
To upload a file to the specific path using ftp command you have to:

ftp -u ftp://&lt;user&gt;:&lt;pass&gt;@&lt;server&gt;/&lt;path&gt; /path/to/file


From man ftp:


 -u URL file [...]
             Upload files on the command line to URL where URL is one of
             the ftp URL types as supported by auto-fetch (with an
             optional target filename for single file uploads), and file
             is one or more local files to be uploaded.



For auto-fetch URLs also look into man ftp under AUTO-FETCHING FILES section.