TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

FileDownloader.DownloadFileAdd Method

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Adds an entry to the file list.

Syntax

JavaScript
getFileDownloader("FileDownloaderID").DownloadFileAdd(ContentType, FileSize, fileName, Url);

Parameters

ContentType

A string with the MIME type of the file to download.

FileSize

An integer equal to the file size in bytes. Specifying the file size is optional; to ignore it set the parameter to 0.

fileName

A string with the name that will be used for saving the file.

Url

A string with the URL of the file to download.

Return Value

An integer equal to the index of the added entry in the file list.

See Also

Reference