uploader Module
Provides core Upload-functionality.
Also definesHTMLInputElement.prototype.sendFiles
.
The Uploader is a Class, which can be instantiated with a config
-object:
{url: {String}, the default url to send to
params: {Object}, the default params that will be send with the request
options: {Object}, the xhr-options (see http://itsa.io/api/classes/IO.html#method_sendBlob)
maxFileSize: {Number}, the maximum filesize for every single file to be accepted. Note that the server needs to
controll this, however, when set, the uploader is enabled to show a proper warning while
rejecting the io-promise
totalFileSize: {Number} the maximum filesize for all files (cummulated) to be accepted. Note that the server needs to
controll this, however, when set, the uploader is enabled to show a proper warning while
rejecting the io-promise
}
Copyright (c) 2014 ITSA - https://github.com/itsa New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
This module provides the following classes: