Raised each time when download of a successive file is completed.
<script type="text/javascript" src="iuembed.js"> </script> <script type="text/javascript"> function FileDownloaderID_DownloadItemComplete(Result, ErrorPage, Url, fileName, ContentType, FileSize) { //...your code... } var fd = new FileDownloaderWriter("FileDownloaderID", 610, 500); //...params... //...other event listeners... fd.addEventListener("DownloadItemComplete", "FileDownloaderID_DownloadItemComplete"); //...other event listeners... fd.writeHtml(); </script>
A numeric value that reflects the completion status. The value can be one of the following:
Value | Description |
---|---|
-1
|
An unexpected error occured. |
0
|
Download has been completed successfully. |
1
|
An error has occurred while downloading the file. |
3
|
The file is skipped by the user. |
4
|
The MIME type returned for the file by the server does not correspond to the type specified in the file list. |
5
|
The size returned for the file by the server does not correspond to the size specified in the file list. |
6
|
An error has occurred while copying the file. |
7
|
The file could not be found on the server. |
8
|
Access to the file on the server is denied. |
9
|
Time out while downloading the file. |
An HTML page returned by the server. If some error has occurred on the server side, this page will contain the error code and its description. The page can be displayed in the browser without any additional modifications. If the value of the Result
parameter is a successful one, the ErrorPage
parameter does not contain anything.
The URL of the file that has been downloaded.
The name of the file that has been downloaded.
The MIME type of the file that has been downloaded. This is the MIME type specified in the file list.
The size of the file that has been downloaded. This is the size specified in the file list.
If you want to get a notification of the whole download completion, handle the E:FileDownloader.DownloadComplete event instead.