LibraryItemDownloadsessionFileInfo

The File.Info structure defines the downloaded file.


Properties

integer as int64
bytes_transferred Required

The number of bytes that have been transferred by the server so far for making this file prepared for download. This value may stay at zero till the client starts downloading the file.


string
name Required

The name of the file.


status Required

The preparation status (PrepareStatus) of the file.

Possible values are: UNPREPAREDPREPARE_REQUESTEDPREPARINGPREPAREDERROR


checksum_info Optional

The checksum information of the file. When the download is complete, you can retrieve the checksum from the File.get operation to verify the checksum for the downloaded file. The checksum is always calculated for the downloaded file, but this field won’t be set until the download is complete.


download_endpoint Optional

Endpoint at which the file is available for download. The value is valid only when the File.Info.status is PREPARED. This field won’t be set until the file status is PREPARED.


error_message Optional

Error message for a failed preparation when the prepare status is ERROR. This field won’t be set unless there was an error with the file transfer.


integer as int64
size Optional

The file size, in bytes. This field may not be available immediately. It is guaranteed to be set when the client finishes downloading the file.

JSON Example

{
    "bytes_transferred": 0,
    "name": "string",
    "status": "enum"
}
Feedback

Was this page helpful?