## Aurigma Image Uploader 6.1 Dual

# ImageUploader.RenameField Method

- Collapse All Sections
- See Also
- Language Filter ( all languages )
- Supported in: ActiveX , Java

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]");

## See Also

### Examples

- POST Field Reference
- Configuring POST Format

### Reference

- AddField() Method
- RemoveField() Method