The default action that will be performed, 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("FileExistsDialogDefaultAction", "Overwrite");
//...other params...
fd.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript

getFileDownloader("FileDownloaderID").setFileExistsDialogDefaultAction(value);
value = getFileDownloader("FileDownloaderID").getFileExistsDialogDefaultAction();

Property Value

A member of the following enumeration that specifies the default action to be performed if the downloaded file already exists.

String Value Integer Value Description
Overwrite 0 Overwrite the existing file.
Skip 1 Skip the file being downloaded.
Rename 2 Rename the file being downloaded. A new name is made up by adding "Copy of " to the original file name.
Note

When you get this property value via JavaScript, an integer value will be returned (even if the property is initialized with a string value).

Default value is "Overwrite" (0).

Remarks

Using this property makes sense only if the P:FileDownloader.FileExistsDialogTimeOut property is set to a non-negative value.