FtpUploadFiles — Open connection, upload files, close connection.
FtpUploadFiles FileList ?TargetRemoteDirectory?
Return Value
FileListList of files to upload.
TargetRemoteDirectoryOptional. Remote directory to upload to. By default it will upload to the directory it connects to.
More Info
This command makes it easy for you to upload some files with one line of code, provided that you have already configured FTP, as in About FTP Use. This may make it more convenient to use FTP within an application.

The command will open a connection by using the configuration, switch to the target remote directory, upload each file, and then close the connection.

If you want to be able to upload to various different directories on the remote machine, you can call the command multiple times, or, better yet, manage the connection yourself and use ftp::Put.

In the current version of this command, there are no options with which to set an overwrite policy. The command will simply overwrite any existing files (if it has permissions).

If any upload fails, an error will be raised and the command will terminate without trying to recover or continue.

For information regarding exceptions / errors, see here.
% # FTP was already configured elsewhere
% String2File "my file" my.txt
% FtpUploadFiles my.txt
% file delete my.txt
% FtpDownloadFiles my.txt
% File2String my.txt
my file
FtpDownloadFiles, FtpUploadDirectory, FtpUploadSite
file, network