Adds a POST field with specified name and value to the request submitted to the server.

Syntax

JavaScript CopyCode imageCopy Code
getImageUploader("ImageUploaderID").AddField(NameValue);
Parameters
Name

Name of the POST field (an analogue to the name attribute of an <input> HTML element).

NoteNote

If you try to add several fields with the same name, the latest one will overwrite the previous value.

Value
Value of the POST field (an analogue to the value attribute of an <input> HTML element).

Remarks

Alternatively you can attach an additional form to the request. Use the AdditionalFormName property to do that.

See Also

Examples
Customizing Upload Pane
Uploading Additional Data with Files

Reference
AdditionalFormName Property
RemoveField Method