A mixin for dojox/form/Uploader that adds HTML5 multiple-file upload capabilities and progress events.
Note that this does not add these capabilities to browsers that don't support them. For IE8 or older browsers, _IFrame or _Flash mixins will be used.
Add a dom node which will act as the drop target area so user can drop files to this node.
If onlyConnectDrop is true, dragenter/dragover/dragleave events won't be connected to dojo.stopEvent, and they need to be canceled by user code to allow DnD files to happen. This API is only available in HTML5 plugin (only HTML5 allows DnD files).
Parameter | Type | Description |
---|---|---|
node | undefined | |
onlyConnectDrop | Boolean |
Optional
|
See: dojox.form.Uploader.upload
Parameter | Type | Description |
---|---|---|
formData | Object |
Optional
|
Used with WebKit and Firefox 4+ Upload files using the much friendlier FormData browser object.
Parameter | Type | Description |
---|---|---|
data | Object |