Aurigma Image Uploader 4.6 Dual
ImageUploader.RenameField Method
See Also Supported in: ActiveX Java

Renames the specified standard POST field to the new name.

# Syntax

JavaScript | Copy Code
--- | ---
    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:

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

[ThumbnailIndex]

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

  Copy 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