metadata.renameStandardField(String,String) Method ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Renames the specified standard POST field.

Syntax

JavaScript
$au.uploader('uploaderID').metadata().renameStandardField(originalName, newName);

Parameters

originalName

Type: String

The name of the standard POST field to rename.

newName

Type: String

The new fields name.

Remarks

Both originalName and newName parameters can contain particular indices or use the following placeholders:

[itemIndex]

Current index of the file.

JavaScript
var u = $au.uploader('uploaderID'); 
$au.uploader('uploaderID').metadata().renameStandardField("Description_[itemIndex]", "MyDescription_[itemIndex]");
[converterIndex]

Current index of the converted file.

JavaScript
var u = $au.uploader('uploaderID'); 
u.metadata().renameStandardField("File[converterIndex]Mode_[itemIndex]", "MyFile[converterIndex]Mode_[itemIndex]");
[tagName]

Name of the extracted EXIF of IPTC field.

JavaScript
var u = $au.uploader('uploaderID'); 
u.metadata().renameStandardField("[tagName]_[itemIndex]", "My[tagName]_[itemIndex]");

See Also

Manual