WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: hasAttrStr.

File.prototype.hasAttrStr()

Reports whether file has given string attribute defined.

Syntax

file.hasAttrStr(key string) boolean

Parameters

key string

Name of the attribute.

Examples

Basic example.

Subscribe to our newsletter!