Wijmo UI for the Web
accept Option

Default value: ""

Specifies the accept attribute of upload. This is an attribute of the file input.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").wijupload("option", "accept");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").wijupload("option", "accept", newValue);
        
});
Javascript (Specification) 
var accept : string;
Example
$(".selector").wijupload("accept", "image/*")
Remarks
It is a filter that allows the "Choose File to Upload" dialog box to show the file list with the specified type. Possible values: audio/* - All sound files are accepted. video/* - All video files are accepted. image/* - All image files are accepted. MIME_type - A valid MIME type with no parameters.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijupload jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.