This documentation is for the old version. Go to the latest Upload Suite docs

metadata.enableStandardField(String,Boolean) Method

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Enables or disables the specified standard POST field.

Syntax

JavaScript
$au.uploader('uploaderID').metadata().enableStandardField(name, enable);

Parameters

name

Type: String

The name of the standard POST field to enable/disable.

enable

Type: Boolean

If true, the specified standard POST field is uploaded; otherwise, this filed in not send to a server.

Remarks

The name parameter can contain particular indices or use the following placeholders:

[itemIndex]

Current index of the file.

JavaScript
u.metadata().enableStandardField("Tag_[itemIndex]", false);
[converterIndex]

Current index of the converted file.

JavaScript
u.metadata().enableStandardField("File[converterIndex]Size_[itemIndex]", false);

See Also

Manual