ftp-upload Command
Uploads files to an FTP server.
Usage
ftp-upload [parameters]
Parameters:
- host: specifies the FTP host name or IP address (required).
- port: specifies the FTP port number. If not set, the default 21 port will be used.
- user: specifies the FTP user to use for authenticating (required).
- pwd: specifies the FTP password to use for authenticating (required).
- remote-dir: the root remote directory on the FTP server where the files will be uploaded.
- files: a semicolon (;)-separated list of files to be uploaded. If this parameter is not set, the command will use a file list from the last file command. If there was no previous file command, the ftp-upload command will fail.
- base-dir: specifies the base directory to use when uploading files. All file paths will be relative to this base directory. If this parameter is not set, the base directory of the last file command will be used. If there was no previous file command, the current directory will be used.
- parallel: specifies how many parallel connections to use (the default is one connection).
The ftp-upload command will replicate the directory structure of the files based on the base directory.
Examples
export-svg
ftp-upload host=myftp.com user=me pwd=secret remote-dir=uploadplace
Exports the map to the SVG file and then uploads all the resulting files (which can include the SVG file and attached images) into a uploadplace remote directory.
ftp-upload host=myftp.com port=333 user=me pwd=secret remote-dir=uploadplace files=file1.txt;file2.txt;other/image.bmp compression=8
Uploads three files into a uploadplace remote directory. The last file (image.bmp) will be placed in a separate subdirectory called other.