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

metadata.renameStandardField(String,String) Method

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
u.metadata().renameStandardField("Description_[itemIndex]", "MyDescription_[itemIndex]");
[converterIndex]

Current index of the converted file.

JavaScript
u.metadata().renameStandardField("File[converterIndex]Mode_[itemIndex]", "MyFile[converterIndex]Mode_[itemIndex]");
[tagName]

Name of the extracted EXIF of IPTC field.

JavaScript
u.metadata().renameStandardField("[tagName]_[itemIndex]", "My[tagName]_[itemIndex]");

See Also

Manual