Renames the specified standard POST field to the new name.

Syntax

JavaScript CopyCode imageCopy Code
getImageUploader("ImageUploaderID").RenameField(OldNameNewName);
Parameters
OldName
String value that specifies a name of the standard POST field to rename.
NewName
String value that specifies a new field name.

Remarks

Both string parameters can use the following placeholders:

[ItemIndex]

Current index of the file. It can be used as follows:

CopyCode imageCopy Code
RenameField("Width_[ItemIndex]", "MyWidth - [ItemIndex]");
[ThumbnailIndex]

Current index of the thumbnail. It can be used as follows:

CopyCode imageCopy Code
RenameField("Thumbnail[ThumbnailIndex]Width_[ItemIndex]", "Thumbnail width, Item - [ItemIndex], Thumbnail - [ThumbnailIndex]");

See Also

Examples
POST Field Reference
Configuring POST Format

Reference
AddField Method
RemoveField Method