-
Notifications
You must be signed in to change notification settings - Fork 1.4k
File
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.
### [File(file)](/moxiecode/plupload/blob/master/src/plupload.js#L2168 "Defined at: src/plupload.js:2168")Constructs a new file instance.
Arguments
-
file
Object
Object containing file properties-
name
String
Name of the file. -
size
Number
File size.
-
name
File id this is a globally unique id for the specific file.
### [name](/moxiecode/plupload/blob/master/src/plupload.js#L2193 "Defined at: src/plupload.js:2193")File name for example "myfile.gif".
### [type](/moxiecode/plupload/blob/master/src/plupload.js#L2201 "Defined at: src/plupload.js:2201")File type, e.g image/jpeg
File size in bytes (may change after client-side manupilation).
### [origSize](/moxiecode/plupload/blob/master/src/plupload.js#L2217 "Defined at: src/plupload.js:2217")Original file size in bytes.
### [loaded](/moxiecode/plupload/blob/master/src/plupload.js#L2225 "Defined at: src/plupload.js:2225")Number of bytes uploaded of the files total size.
### [percent](/moxiecode/plupload/blob/master/src/plupload.js#L2233 "Defined at: src/plupload.js:2233")Number of percentage uploaded of the file.
### [status](/moxiecode/plupload/blob/master/src/plupload.js#L2241 "Defined at: src/plupload.js:2241")Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
### [lastModifiedDate](/moxiecode/plupload/blob/master/src/plupload.js#L2250 "Defined at: src/plupload.js:2250")Date of last modification.
## Methods ### [getNative()](/moxiecode/plupload/blob/master/src/plupload.js#L2258 "Defined at: src/plupload.js:2258")Returns native window.File object, when it's available.
### [getSource()](/moxiecode/plupload/blob/master/src/plupload.js#L2269 "Defined at: src/plupload.js:2269")Returns mOxie.File - unified wrapper object that can be used across runtimes.
### [destroy()](/moxiecode/plupload/blob/master/src/plupload.js#L2282 "Defined at: src/plupload.js:2282")Destroys plupload.File object.