MultiPowUpload 3.3
File
  Home page
Contact support

File object

 This class represents an individual file added to UniversalUploader list. All properties are read-only.

id (File.id property)

id: String [read-only]

Unique identification.

name (File.name property)

name: String [read-only]

The name of the file on the local disk. Only file name, without path.

size (File.size property)

size: Number [read-only]

The size of the file on the local disk, in bytes. Size property may not be available in some uploaders (like html4), in this case value of this property will be -1.

status (File.status property)

status: Integer [read-only]

It is a number that represents current status of file. Possible values are listed below:

Status constants
Value

Name

Description

0

STATUS_READY

File is ready for processing.

1

STATUS_INPROGRESS

File is currently uploaded/downloaded.

2

STATUS_COMPLETE

File was sucessfully uploaded/downloaded.

3

STATUS_CANCELLED

File upload/download process was cancelled.

4

STATUS_ERROR

Error was occured while uploading/downloading the file.

serverResponse (File.serverResponse property)

serverResponse: String [read-only]

Server reply as a string. It is populated only after FileUploadComplete event was fired for this file.

Example

	universalUploader.bindEventListener("FileUploadComplete", function (uploaderId, file){
alert("File upload complete "+file.name+" Response: "+file.serverResponse);
});

getPercent() (File.getPercent() method)

getPercent(): Number

Return upload percent of this file.

Example

universalUploader.bindEventListener("UploadProgress", function (uploaderId, file){
alert("Uploading file"+file.name+"file percent: "+file.getPercent());
});