uploadSettings.progressBytesMode Property HTML5/Flash Uploader JavaScript

Supported technologies:

Gets or sets a value specifying how to estimate the total size of the upload session as well as the amount of bytes that have already been sent to a server.

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    uploadSettings: {
        //...other params...
        progressBytesMode: "ByTotalSize",
        //...other params...
    }
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').uploadSettings().progressBytesMode(value);
value = $au.imageUploaderFlash('uploaderID').uploadSettings().progressBytesMode();

Property Value

Type: String

The progress bytes estimation mode.

The following values are supported:

ValueDescription
ByFileCountThe progress is based on the number of uploaded files rather than amount of bytes.
ByTotalSizeThe total upload size is used to calculate the progress (including the resized files). This size is not known beforehand and it is estimated based on the size of uploaded data. It may be a bit inaccurate for the first few files, but the precision is increased with each new uploaded file.
ByPackageSizeThe size of the uploaded session and the uploaded bytes are measured by the size of the current package. Thus, this mode is the nearest estimation of the uploaded bytes when you set several converters and upload all files in one package.
BySourceSizeThe size of the upload session and the uploaded bytes are measured by sizes of user-selected files. For example, if you select two files of 5 and 10 Mb, the total upload size will be 15 Mb and the amount of uploaded bytes will grow from 0 to 15 Mb during the upload, regardless of converted files and other auxiliary data. Thus, this mode is the nearest estimation of the uploaded bytes when you upload original files only.

Default value is "ByTotalSize".

Remarks

This property determines how to estimate the total size of the upload session as well as the amount of bytes that have already been sent to a server. These data are used in the uploading files dialog and the Progress event.

See Also

Reference