metadata.enableStandardField(String,Boolean) Method ActiveX/Java Uploader JavaScript

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
var u = $au.uploader('uploaderID'); 
u.metadata().enableStandardField("Tag_[itemIndex]", false);
[converterIndex]

Current index of the converted file.

JavaScript
var u = $au.uploader('uploaderID'); 
u.metadata().enableStandardField("File[converterIndex]Size_[itemIndex]", false);

See Also

Manual