FTPFileDownload

MacroModule

genre

File

author

Wolf Spindler

package

FMEstable/ReleaseMeVis

definition

FTPFileDownload.def

see also

HTTPFileDownload, LocalImage

keywords

internet, web, ftp, download, protocol, example

Purpose

FTPFileDownload downloads a file from an ftp site.

Details

Troublehsooting

If you receive timeouts as exception messages in the console, then you may want to try a higher Timeout, especially if you really suspect a slow connection as reason.

Otherwise, if all parameters look fine, and especially if the example network has the same error, then you may want to check whether connections using the ftp protocol might be blocked on you system. Check whether proxy and firewall allow usage of ftp downloads or contact your IT.

Windows

Default Panel

../../../Projects/FTPFileDownload/Modules/mhelp/Images/Screenshots/FTPFileDownload._default.png

Parameter Fields

Field Index

Decompose Url: Trigger

Password: String

Download: Trigger

Status: String

Ftp Directory: String

Stop: Trigger

Ftp File: String

Target Directory: String

Ftp Server: String

Target File Name: String

Full Target File Name: String

Timeout: Integer

Full Url: String

User Name: String

isDownloading: Bool

Visible Fields

Full Url

name: fullUrl, type: String

A full url to anf ftp file can be specified here can here, and then decomposed with Decompose Url to fill Ftp Server, Ftp Directory, and Ftp File automatically. Full Url is not used directly; it can be left empty or undefined if Ftp Server, Ftp Directory, and Ftp File are set up otherwise.

Decompose Url

name: decomposeUrl, type: Trigger

Decomposes Full Url into Ftp Server, Ftp Directory, and Ftp File; see Full Url for details.

Ftp Server

name: ftpServer, type: String

The ftp server to download from.

Ftp Directory

name: ftpDirectory, type: String

The directory on Ftp Server in which the file to download is located.

Ftp File

name: ftpFile, type: String

The ftp file to download from directory Ftp Directory on Ftp Server.

User Name

name: userName, type: String

Can be left empty if Ftp Server does not require credentials for the connection, otherwise fill in the needed user name.

Password

name: password, type: String

Can be left empty if Ftp Server does not require credentials for the download connection, otherwise fill in the needed password.

Target Directory

name: targetDirectory, type: String

The directory into which the downloaded Target File Name shall be stored.

Target File Name

name: targetFileName, type: String

The file name to be used for the downloaded file, and which is to be stored in Target Directory.

Full Target File Name

name: fullTargetFileName, type: String

Displays the full path of the file to be stored.

Timeout

name: timeout, type: Integer, default: 3, minimum: 1

The number of seconds to wait for slower connections.

Download

name: download, type: Trigger

Starts a download if all fields are set up appropriately.

Stop

name: stop, type: Trigger

Stops a download if one is active; the field is insensitive if no download is ongoing.

Status

name: status, type: String, persistent: no

Shows status information about the current download process.

Hidden Fields

isDownloading

name: isDownloading, type: Bool, persistent: no

Internal field indicating that a download is in progress.