class
SAPO.Component.AjaxUpload
Version:
2.1
Since:
Defined in
Component/AjaxUpload/2.1/lib.js
November 2011
Constructor Summary
Function Summary
send
(Object
data)
- sends the given data along with the file the user must have already chosen
Constructor Details
constructor AjaxUpload
AjaxUpload(String|DomElement
elem, Object
options)
Parameters:
elem
options
-
String endpoint
- URI -
String fileFiledName
- field which will carry the file -
Function(err, data, instance) onResult
- if err is filled, upload failed. data is for debugging purposes. instance is the AjaxUpload which made the uplaod possible -
[ Function(fn, instance) onFileSet ]
- file name set by the user (path is stripped). -
[ Function(fn, instance) onStart ]
- file name set by the user (path is stripped).
Function Details
function send
send(Object
data)
- sends the given data along with the file the user must have already chosen
Parameters:
data
- each key/value pair is sent as a hidden form field.