Skip to content
Davit Barbakadze edited this page Dec 20, 2013 · 15 revisions

Table of Contents

## Properties ### [VERSION](/moxiecode/plupload/blob/master/src/plupload.js#L81 "Defined at: src/plupload.js:81") `static`

Plupload version will be replaced on build.

### [STOPPED](/moxiecode/plupload/blob/master/src/plupload.js#L91 "Defined at: src/plupload.js:91") `static`

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

### [STARTED](/moxiecode/plupload/blob/master/src/plupload.js#L100 "Defined at: src/plupload.js:100") `static`

Upload process is running

### [QUEUED](/moxiecode/plupload/blob/master/src/plupload.js#L109 "Defined at: src/plupload.js:109") `static`

File is queued for upload

### [UPLOADING](/moxiecode/plupload/blob/master/src/plupload.js#L118 "Defined at: src/plupload.js:118") `static`

File is being uploaded

### [FAILED](/moxiecode/plupload/blob/master/src/plupload.js#L127 "Defined at: src/plupload.js:127") `static`

File has failed to be uploaded

### [DONE](/moxiecode/plupload/blob/master/src/plupload.js#L136 "Defined at: src/plupload.js:136") `static`

File has been uploaded successfully

### [GENERIC_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L147 "Defined at: src/plupload.js:147") `static`

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

### [HTTP_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L156 "Defined at: src/plupload.js:156") `static`

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

### [IO_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L165 "Defined at: src/plupload.js:165") `static`

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

### [SECURITY_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L174 "Defined at: src/plupload.js:174") `static`

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

### [INIT_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L183 "Defined at: src/plupload.js:183") `static`

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

### [FILE_SIZE_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L192 "Defined at: src/plupload.js:192") `static`

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](/moxiecode/plupload/blob/master/src/plupload.js#L201 "Defined at: src/plupload.js:201") `static`

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

### [FILE_DUPLICATE_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L210 "Defined at: src/plupload.js:210") `static`

Duplicate file error. If prevent_duplicates is set to true and user selects the same file again.

### [IMAGE_FORMAT_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L219 "Defined at: src/plupload.js:219") `static`

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

### [IMAGE_MEMORY_ERROR](/moxiecode/plupload/blob/master/src/plupload.js#L228 "Defined at: src/plupload.js:228") `static`

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](/moxiecode/plupload/blob/master/src/plupload.js#L237 "Defined at: src/plupload.js:237") `static`

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

### [mimeTypes](/moxiecode/plupload/blob/master/src/plupload.js#L246 "Defined at: src/plupload.js:246")

Mime type lookup table.

## Methods ### [typeOf(o)](/moxiecode/plupload/blob/master/src/plupload.js#L260 "Defined at: src/plupload.js:260") `static`

Gets the true type of the built-in object (better version of typeof).

Arguments

  • o Object
    Object to check.
### [extend(target, obj)](/moxiecode/plupload/blob/master/src/plupload.js#L271 "Defined at: src/plupload.js:271") `static`

Extends the specified object with another object.

Arguments

  • target Object
    Object to extend.
  • obj Object..
    Multiple objects to extend with.
### [guid()](/moxiecode/plupload/blob/master/src/plupload.js#L282 "Defined at: src/plupload.js:282") `static`

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.