restrictions.deniedFileMask Property HTML5/Flash Uploader JavaScript

Supported technologies:

Gets or set a file mask for the files that are denied to be uploaded.

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    restrictions: {
        //...other params...
        deniedFileMask: "",
        //...other params...
    }
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').restrictions().deniedFileMask(value);
value = $au.imageUploaderFlash('uploaderID').restrictions().deniedFileMask();

Property Value

Type: String

The file mask for the files that are denied to be uploaded. You can use the standard wildcards such as asterisk * (arbitrary substring) and question mark ? (arbitrary character). To specify several masks, separate them by semicolons, e.g. *.exe;*.asp;*.htm. To filter out files without any extension use *.. To match all files (no matter if they have an extension or not) use *.

Default value is "".

Remarks

Note, users still can see files which match this mask in the Open File dialog. The restriction applies only when files are being added to the upload list.

See Also

Reference

Manual