Observable
  Uploader

Class Ext.ux.upload.Uploader

Package:Ext.ux.upload
Defined In:Ext.ux.upload.Uploader.js
Class:Uploader
Extends:Observable
Author:Gary van Woerkens
Version:1.0
Ext.ux.upload.Uploader is a class to upload files from the web interface to the server.
This class uses both swfupload and native browser upload system. Browser upload is triggered by native browser file drop event.
Any instance of this class can set to components plugins list to make this component an upload zone or a swfupload trigger as well.
var uploader = new Ext.ux.upload.Uploader({
    url:"/var/www/my/upload/folder/"
});

var button = new Ext.Button({
   text:"swfupload trigger"
   ,plugins:[uploader]
});

button.render(Ext.getBody());

var panel = new Ext.Panel({
    title:"upload drop zone"
    ,width:300
    ,height:200
    ,plugins:[uploader]
});

panel.render(Ext.getBody());

Config Options

Config OptionsDefined By
 debug : Boolean
Enable debug (SWFupload)
Uploader
 enableLogPanel : Boolean
True to display upload logs panel.
Uploader
 html5Params : Object
To specify a specific config Html5 upload.
Uploader
 maxFileSize : Number
Maximum size of a file to upload.
Uploader
 maxFiles : Number
Maximum number of files to upload in a row.
Uploader
 swfParams : Object
To specify a specific config for SWFUpload.
Uploader
 swfUrl : String
The URL form which to request swfupload object.
Uploader
 url : String
The URL where files will be uploaded. Starts from www document root.
Uploader
  : path
Uploader

Public Properties

PropertyDefined By
 connections : Array
An array of opened connections.
Uploader
 queue : Array
An array of files.
Uploader

Public Methods

MethodDefined By

Public Events

EventDefined By