metadata.renameStandardField(String,String) Method HTML5/Flash Uploader JavaScript

Supported technologies:

Renames the specified standard POST field.

Syntax

JavaScript
$au.imageUploaderFlash('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.imageUploaderFlash('uploaderID');
$au.uploader('uploaderID').metadata().renameStandardField("Description_[itemIndex]", "MyDescription_[itemIndex]");
[converterIndex]

Current index of the converted file.

JavaScript
var u = $au.imageUploaderFlash('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.imageUploaderFlash('uploaderID');
u.metadata().renameStandardField("[tagName]_[itemIndex]", "My[tagName]_[itemIndex]");

See Also

Manual