dojox/form/uploader/_HTML5 (version 1.10)

Summary

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.

Property Summary

Method Summary

Properties

errMsg
uploadType

Methods

_drop(e)
Parameter Type Description
e undefined
_xhrProgress(evt)
Parameter Type Description
evt undefined
addDropTarget(node,onlyConnectDrop)

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
createXhr()
Returns:instance
postCreate()
postMixInProperties()
upload(formData)

See: dojox.form.Uploader.upload

Parameter Type Description
formData Object
Optional
uploadWithFormData(data)

Used with WebKit and Firefox 4+ Upload files using the much friendlier FormData browser object.

Parameter Type Description
data Object
Error in the documentation? Can’t find what you are looking for? Let us know!