Period which File Downloader should wait before performing the default action, if the file being downloaded already exists.

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("FileExistsDialogTimeOut", "-1");
//...other params...
fd.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript

getFileDownloader("FileDownloaderID").setFileExistsDialogTimeOut(value);
value = getFileDownloader("FileDownloaderID").getFileExistsDialogTimeOut();

Property Value

An integer value that specifies the number of milliseconds File Downloader should wait before performing the default action.

During the waiting period a dialog asking the user what to do will be displayed.

If -1 is specified, the waiting period is infinite, that means, the default action will not be performed. If 0 is specified, the default action will be performed immediately.

Default value is "-1".

Remarks

The default action is specified with the P:FileDownloader.FileExistsDialogDefaultAction property.

Suppose, you have set the timeout equal to 30000, and the P:FileDownloader.FileExistsDialogDefaultAction value is set to Rename. Then, if File Downloader tries to save a file and file with such name already exists on the client's computer at specified folder, the user will have 30 seconds to choose what to do in that case. If they do not choose anything in this period, the new file will be automatically renamed and saved.