Download Item object
Access the Download Item object by using a proxy for certain properties, methods, and events of the component, such as the Download Manager events and the Items property.
chrome://downloads
or edge://downloads
pages, the download remains in the file list for the Download Manager component. The
system does not clear the downloads until this page closes.
Use the following properties, methods, and events when downloading files from the Google Chrome or Microsoft Edge browsers using the Download API.
Properties
Property | Description | Return type |
BytesReceived | The current number of bytes downloaded. | Integer |
CurrentStatus | The current status of the download; for example, started, interrupted, paused, or completed. | Enum |
DownloadID | The download ID that is assigned by the browser to this Download Item object. | Integer |
EstimatedEndTime | The time when the download is expected to complete. | DateTime |
FilePath | The path to the folder where the file exists. | String |
FinalURL | The web site from where the file came, after all redirects. | String |
InterruptReason | The reason that file download was interrupted. | String |
PercentComplete | The percentage that shows the download progress or if the download completed. | Integer |
StatusDateTime | When the current state started. This property only shows the Started and Completed states. For all other states, this property is blank. | Datetime |
TotalFileSize | The size of the file download. | Integer |
URL | The web site from where the download was referenced, excluding all redirects. | String |
Methods
Method | Description | Parameters | Return type |
PauseDownload | Use this method to pause the downloading of the object. | None | Void |
ResumeDownload | Use this method to resume the downloading of the object. | None | Void |
TerminateDownload | Use this method to stop the downloading of the object. | None | Void |
Previous topic Download Manager component Next topic Exception handling components