Salesforce

FTP (Magic xpi 4.13)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

FTP (Magic xpi 4.13)

File Transfer Protocol (FTP) is a utility for transferring files between a local host (your computer) and remote hosts (another computer), regardless of physical location. In other words, the machines can either be in the same network or outside the network.

An FTP client program runs on your computer whilst an FTP server program runs on the host computer. The FTP server listens for requests and then sends the requested files to the client. When you log on to an FTP site or server by giving your account number and password, a command link is established across the Internet. The client sends commands, such as listing files or changing the directory to the FTP server, which return status messages. Once you are connected and ready to download a file, FTP opens a second data connection, and, once the file is transferred, the data connection is closed.

The use of FTP:

  • Promotes file sharing.

  • Facilitates the use of remote computers.

  • Protects the user from file storage variations.

  • Ensures data is transferred reliably and efficiently.

You can use the FTP component to run any of these FTP operations:

Command

Operation

CD

Changes the working directory on the remote server.

PUT

Transfers a single file from the local directory to a remote server.

PUTA

Appends a single file from the local directory to an existing remote server file.

GET

Transfers a single file from the remote server to the local directory.

QUIT

Terminates the FTP session and exits.

REN

Renames a single file or directory on the remote server.

DEL

Deletes a single file on the remote server.

MK

Creates a directory on the remote server.

RM

Deletes a directory on the remote server.

DIR

Shows the contents of a single directory on the remote server.

Output is stored in the Operation table’s Opr_Data field. This table is only used for the Internal method.

OS

Retrieves the server’s operating system type.

Output is stored in the Operation table’s Opr_Data field. This table is only used for the Internal method.

ASCII

BINARY

The Transfer mode. You can set this to either ASCII or Binary data format.

Files can be uploaded in either ASCII text file formats (.txt, .html, .pl, .asp, .php, .xml, .css), or as Binary file formats (.gif, .jpg, .png, .swf, .exe, .zip, or .raw).

Open Session

Opens an FTP connection to a selected server.

MDel

Deletes multiple files from a remote server directory.

MGet

Gets multiple files from a remote server directory.

Mput

Puts multiple files on a remote server directory.

Related Topics

Reference
Attachment 
Attachment