FileDownloader.LogFileFailedText Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Text string that appears in the download log to indicate a failed download of the file.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var fd = new FileDownloaderWriter("FileDownloaderID", 610, 500);
//...other params...
fd.addParam("LogFileFailedText", "Failed to download file [FileName] from [Url]: [Reason]");
//...other params...
fd.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getFileDownloader("FileDownloaderID").setLogFileFailedText(value);
value = getFileDownloader("FileDownloaderID").getLogFileFailedText();

Property Value

A string value that specifies a text to be displayed in the download log if file download failed.

Three special keywords are used in this text label:

[FileName]

Replaced with name of the file.

[Url]

Replaced with the URL from which the file should have been downloaded.

[Reason]

Replaced with the reason why the file was not downloaded.

Default value is "Failed to download file [FileName] from [Url]: [Reason]".

Remarks

This property is necessary for localization of File Downloader.

See Also

Reference