This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.PasteFileNameTemplate Property

Supported in: ActiveX , Java

File name template for files pasted from clipboard.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...other params...
iu.addParam("PasteFileNameTemplate", "Paste_[Date]_[Time]");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setPasteFileNameTemplate(value);
value = getImageUploader("ImageUploaderID").getPasteFileNameTemplate();

Property Value

A string value that specifies a file name template for files pasted from clipboard. It can contain any characters allowed for file names and use the following placeholders:

[Date]
Current date (i.e. when the file was pasted from clipboard).
[Time]
Current time (i.e. when the file was pasted from clipboard).

Default value is "Paste_[Date]_[Time]".

See Also

Manual

Reference