Wijmo UI for the Web
wijupload jQuery Widget
Support batch or single uploads and add an API for displaying upload progress.
Syntax
Javascript (Usage) 
$(function () {
    var options; // Type:  wijmo.upload.wijupload.options
     
    $(".selector").wijupload(options);
});
Javascript (Specification) 
function wijupload() : any;
Browser Compatibility
7
5
5
Options
 NameDescription
public Optionaccept

Default value: ""

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

 
public Optionaction

Default value: ""

Specifies the URL path of the server-side handler that handles the post request, validates file size and type, renames files, and saves the file to the server disk.

 
public OptionautoSubmit

Default value: false

The value indicates whether to upload the file as soon as it is selected in the "Choose File to Upload" dialog box.

 
public OptionenableSWFUpload

Default value: false

upload with SWFupload.swf in all browsers.

 
public OptionenableSWFUploadOnIE

Default value: false

upload with SWFupload.swf, this option is used for multiple-select in IE.

 
public OptionmaximumFiles

Default value: 0

Specifies the maximum number of files that can be uploaded.

 
public Optionmultiple

Default value: true

Determines whether multiple selection is supported.

 
Top
Methods
 NameDescription
public MethoddestroyRemoves the wijupload functionality completely.This will return the element back to its pre - init state.  
public MethodwidgetReturns the.wijmo - wijupload element.  
Top
Events
 NameDescription
public EventchangeFires when user selects a file. This event can be cancelled. "return false;" to cancel the event.  
public EventcompleteFires when file upload is complete.  
public EventprogressFires when a file is uploading.  
public EventtotalCompleteFires when the uploadAll button is clicked and file upload is complete.  
public EventtotalProgressFires when the uploadAll button is clicked and file upload is complete.  
public EventtotalUploadFires when the uploadAll button is clicked. This event can be cancelled. "return false;" to cancel the event.  
public EventuploadFires before the file is uploaded. This event can be cancelled. "return false;" to cancel the event.  
Top

See Also

Widgets

Upload

Reference

wijupload jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.