restrictions.fileMask Property ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets a file mask for the files which are allowed to be uploaded.

Syntax

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

Property Value

Type: String

The file mask for the files allowed 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. *.jpg;*.jpeg;*.jpe. To display all possible files, use *.*.

Default value is "*.*".

See Also

Reference

Manual