next up previous
Next: Additional File Transfer Settings Up: Simple FTP Client Sessions Previous: Retrieving Files

Uploading Files

You can upload files in a similar fashion to downloading files. One big exception is that you will find that uploading files over FTP is much more limited. It is highly unlikely that any server will let you anonymously upload files. This poses far too great a security risk. Therefore you can only upload files to servers that let you access to them via Username and Password.

The commands that let you upload files are:

put
local-file [ remote-file ] -- Store a local file on the remote machine. If remote-file is left unspecified, the local-file name is used after processing according to any ntrans or nmap settings in naming the remote file. File transfer uses the current settings for "representation type", "file structure", and "transfer mode".

send
local-file [ remote-file ] -- The same as for put.

append
local-file [ remote-file ] Append a local file to a file on the remote machine. If remote-file is not specified, the local file name is used, subject to alteration by any ntrans or nmap settings. File transfer uses the current settings for "representation type", "file structure", and "transfer mode".

mput
local-files -- Multiple put: Expand wild cards in the list of local files given as arguments and do a put for each file in the resulting list. See glob for details of filename expansion. Resulting file names will then be processed according to ntrans and nmap settings.

next up previous
Next: Additional File Transfer Settings Up: Simple FTP Client Sessions Previous: Retrieving Files
Dave Marshall
9/28/2001