Skip to content
Davit Barbakadze edited this page Jan 11, 2013 · 15 revisions
### Plupload _Defined at: [undefined:undefined](/moxiecode/plupload/blob/master/undefined#Lundefined)_

undefined


Properties

Methods

Properties

### VERSION _Defined at: [src/plupload.js:10](/moxiecode/plupload/blob/master/src/plupload.js#L10)_

Plupload version will be replaced on build.


### STOPPED _Defined at: [src/plupload.js:20](/moxiecode/plupload/blob/master/src/plupload.js#L20)_

Inital state of the queue and also the state ones it's finished all it's uploads.


### STARTED _Defined at: [src/plupload.js:29](/moxiecode/plupload/blob/master/src/plupload.js#L29)_

Upload process is running


### QUEUED _Defined at: [src/plupload.js:38](/moxiecode/plupload/blob/master/src/plupload.js#L38)_

File is queued for upload


### UPLOADING _Defined at: [src/plupload.js:47](/moxiecode/plupload/blob/master/src/plupload.js#L47)_

File is being uploaded


### FAILED _Defined at: [src/plupload.js:56](/moxiecode/plupload/blob/master/src/plupload.js#L56)_

File has failed to be uploaded


### DONE _Defined at: [src/plupload.js:65](/moxiecode/plupload/blob/master/src/plupload.js#L65)_

File has been uploaded successfully


### GENERIC_ERROR _Defined at: [src/plupload.js:76](/moxiecode/plupload/blob/master/src/plupload.js#L76)_

Generic error for example if an exception is thrown inside Silverlight.


### HTTP_ERROR _Defined at: [src/plupload.js:85](/moxiecode/plupload/blob/master/src/plupload.js#L85)_

HTTP transport error. For example if the server produces a HTTP status other than 200.


### IO_ERROR _Defined at: [src/plupload.js:94](/moxiecode/plupload/blob/master/src/plupload.js#L94)_

Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.


### SECURITY_ERROR _Defined at: [src/plupload.js:103](/moxiecode/plupload/blob/master/src/plupload.js#L103)_

Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.


### INIT_ERROR _Defined at: [src/plupload.js:112](/moxiecode/plupload/blob/master/src/plupload.js#L112)_

Initialization error. Will be triggered if no runtime was initialized.


### FILE_SIZE_ERROR _Defined at: [src/plupload.js:121](/moxiecode/plupload/blob/master/src/plupload.js#L121)_

File size error. If the user selects a file that is too large it will be blocked and an error of this type will be triggered.


### FILE_EXTENSION_ERROR _Defined at: [src/plupload.js:130](/moxiecode/plupload/blob/master/src/plupload.js#L130)_

File extension error. If the user selects a file that isn't valid according to the filters setting.


### IMAGE_FORMAT_ERROR _Defined at: [src/plupload.js:139](/moxiecode/plupload/blob/master/src/plupload.js#L139)_

Runtime will try to detect if image is proper one. Otherwise will throw this error.


### IMAGE_MEMORY_ERROR _Defined at: [src/plupload.js:148](/moxiecode/plupload/blob/master/src/plupload.js#L148)_

While working on the image runtime will try to detect if the operation may potentially run out of memeory and will throw this error.


### IMAGE_DIMENSIONS_ERROR _Defined at: [src/plupload.js:157](/moxiecode/plupload/blob/master/src/plupload.js#L157)_

Each runtime has an upper limit on a dimension of the image it can handle. If bigger, will throw this error.


### mimeTypes _Defined at: [src/plupload.js:167](/moxiecode/plupload/blob/master/src/plupload.js#L167)_

Mime type lookup table.


Methods

### extend(target, obj) _Defined at: [src/plupload.js:190](/moxiecode/plupload/blob/master/src/plupload.js#L190)_

Extends the specified object with another object.

Arguments

  • target (Object) Object to extend.
  • obj (Object..) Multiple objects to extend with.

### guid _Defined at: [src/plupload.js:200](/moxiecode/plupload/blob/master/src/plupload.js#L200)_

Generates an unique ID. This is 99.99% unique since it takes the current time and 5 random numbers. The only way a user would be able to get the same ID is if the two persons at the same exact milisecond manages to get 5 the same random numbers between 0-65535 it also uses a counter so each call will be guaranteed to be page unique. It's more probable for the earth to be hit with an ansteriod. You can also if you want to be 100% sure set the plupload.guidPrefix property to an user unique key.


### getPos(node, root) _Defined at: [src/plupload.js:221](/moxiecode/plupload/blob/master/src/plupload.js#L221)_

Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.

Arguments

  • node (Element) HTML element or element id to get x, y position from.
  • root (Element) Optional root element to stop calculations at.

### xmlEncode(s) _Defined at: [src/plupload.js:239](/moxiecode/plupload/blob/master/src/plupload.js#L239)_

Encodes the specified string.

Arguments

  • s (String) String to encode.

### toArray(obj) _Defined at: [src/plupload.js:248](/moxiecode/plupload/blob/master/src/plupload.js#L248)_

Forces anything into an array.

Arguments

  • obj (Object) Object with length field.

### inArray(needle, array) _Defined at: [src/plupload.js:257](/moxiecode/plupload/blob/master/src/plupload.js#L257)_

Find an element in array and return it's index if present, otherwise return -1.

Arguments

  • needle (Mixed) Element to find
  • array (Array)

### cleanName(s) _Defined at: [src/plupload.js:354](/moxiecode/plupload/blob/master/src/plupload.js#L354)_

Cleans the specified name from national characters (diacritics). The result will be a name with only a-z, 0-9 and _.

Arguments

  • s (String) String to clean up.

### formatSize(size) _Defined at: [src/plupload.js:409](/moxiecode/plupload/blob/master/src/plupload.js#L409)_

Formats the specified number as a size string for example 1024 becomes 1 KB.

Arguments

  • size (Number) Size to format as string.

### parseSize(size) _Defined at: [src/plupload.js:440](/moxiecode/plupload/blob/master/src/plupload.js#L440)_

Parses the specified size string into a byte value. For example 10kb becomes 10240.

Arguments

  • size (String/Number) String to parse or number to just pass through.

Clone this wiki locally