Skip to content
Davit Barbakadze edited this page Jul 7, 2015 · 15 revisions

Important! This page is auto-generated from the comments in the source files. All changes will be overwritten! If you are looking to contribute, modify the comment in the corresponding source file instead.

Table of Contents

Constructor

### [Constructor(file)](/moxiecode/plupload/blob/master/src/plupload.js#L2101 "Defined at: src/plupload.js:2101")

Constructs a new file instance.

Arguments

  • file Object
    Object containing file properties
    • name String
      Name of the file.
    • size Number
      File size.
## Properties ### [id](/moxiecode/plupload/blob/master/src/plupload.js#L2118 "Defined at: src/plupload.js:2118")

File id this is a globally unique id for the specific file.

### [name](/moxiecode/plupload/blob/master/src/plupload.js#L2126 "Defined at: src/plupload.js:2126")

File name for example "myfile.gif".

### [type](/moxiecode/plupload/blob/master/src/plupload.js#L2134 "Defined at: src/plupload.js:2134")

File type, e.g image/jpeg

### [size](/moxiecode/plupload/blob/master/src/plupload.js#L2142 "Defined at: src/plupload.js:2142")

File size in bytes (may change after client-side manupilation).

### [origSize](/moxiecode/plupload/blob/master/src/plupload.js#L2150 "Defined at: src/plupload.js:2150")

Original file size in bytes.

### [loaded](/moxiecode/plupload/blob/master/src/plupload.js#L2158 "Defined at: src/plupload.js:2158")

Number of bytes uploaded of the files total size.

### [percent](/moxiecode/plupload/blob/master/src/plupload.js#L2166 "Defined at: src/plupload.js:2166")

Number of percentage uploaded of the file.

### [status](/moxiecode/plupload/blob/master/src/plupload.js#L2174 "Defined at: src/plupload.js:2174")

Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.

### [lastModifiedDate](/moxiecode/plupload/blob/master/src/plupload.js#L2183 "Defined at: src/plupload.js:2183")

Date of last modification.

## Methods ### [getNative()](/moxiecode/plupload/blob/master/src/plupload.js#L2191 "Defined at: src/plupload.js:2191")

Returns native window.File object, when it's available.

### [getSource()](/moxiecode/plupload/blob/master/src/plupload.js#L2202 "Defined at: src/plupload.js:2202")

Returns mOxie.File - unified wrapper object that can be used across runtimes.

### [destroy()](/moxiecode/plupload/blob/master/src/plupload.js#L2215 "Defined at: src/plupload.js:2215")

Destroys plupload.File object.

Clone this wiki locally