Previous | Next

OnFileDownloadStart Event

Occurs when downloading of a single file in the file list has started.

OnFileDownloadStart(
     Long fileId,
     String fileSize,
     Long segmentCount
)

Parameters

fileId
Type: Long
The ID of the file which has started downloading. The file ID is a value returned from the AddFile method when the file was added to the file list.

fileSize
Type: String
The file size (in bytes). If the file size is not known, the fileSize is "-1". Even though the fileSize is of String type (to support large file sizes - up to 263 bytes), it always contains integer values specifying the file size in bytes.

segmentCount
Type: Long
The number of file segments the file is split into during the download. The segmentCount value may be different than the one specified with the AddFile method, depending on the actual file size and the MinFileSegmentSize property value.