VideoUploader.RenameField Method

Renames the specified standard POST field to the new name.

Syntax

JavaScript
getVideoUploader("VideoUploaderID").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:

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

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

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

See Also

Manual

Reference