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

uploader.pasteFileNameTemplate Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets a file name template for files pasted from clipboard.

Syntax

JavaScript Initialize
$au.uploader({
    //...other params...
    pasteFileNameTemplate: "Paste_[date]_[time]",
    //...other params...
})
Get/Set Value at Runtime
$au.uploader('uploaderID').pasteFileNameTemplate(value);
value = $au.uploader('uploaderID').pasteFileNameTemplate();

Property Value

Type: String

The 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

Reference