Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

File

Jump to bottom Edit New page
Davit Barbakadze edited this page Aug 6, 2017 * 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.

Module: File

Table of Contents

  • Constructor
  • Properties
    • id
    • name
    • type
    • size
    • origSize
    • loaded
    • percent
    • status
    • lastModifiedDate
  • Methods
    • getNative()
    • getSource()
    • destroy()

Constructor

Constructs a new file instance.

Arguments

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

Properties

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

File name for example "myfile.gif".

File type, e.g image/jpeg

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

Original file size in bytes.

Number of bytes uploaded of the files total size.

Number of percentage uploaded of the file.

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

Date of last modification.

Methods

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

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

Destroys plupload.File object.

Clone this wiki locally