Skip to content

File

Davit Barbakadze edited this page · 10 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

File(file)

Constructs a new file instance.

Arguments

  • file Object
    Object containing file properties
    • name String
      Name of the file.
    • size Number
      File size.

Properties

id

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

name

File name for example "myfile.gif".

type

File type, e.g image/jpeg

size

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

origSize

Original file size in bytes.

loaded

Number of bytes uploaded of the files total size.

percent

Number of percentage uploaded of the file.

status

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

lastModifiedDate

Date of last modification.

Methods

getNative()

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

getSource()

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

destroy()

Destroys plupload.File object.

Something went wrong with that request. Please try again.