Renames the specified standard POST field to the new name.

Syntax

JavaScript

getImageUploader("ImageUploaderID").RenameField(OldName, NewName);

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:

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

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

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