Aurigma File Downloader 7.0.4
FileDownloader.Error Event
Raised when some error occurs.
Syntax
JavaScript
<script type="text/javascript" src="iuembed.js"> </script> <script type="text/javascript"> function FileDownloaderID_Error(Code, Description, HttpCode, Page, Url, Index) { //...your code... } var fd = new FileDownloaderWriter("FileDownloaderID", 610, 500); //...params... //...other event listeners... fd.addEventListener("Error", "FileDownloaderID_Error"); //...other event listeners... fd.writeHtml(); </script>
Parameters
- Code
-
The code of the error. This value can be one of the following:
Value Description File list items errors 100 An error occurred during file list item processing (e.g. syntax of file list is wrong). 101 An attempt to download files from an unregistered (without corresponding license key) domain occured. 102 Empty filename or URL string. 103 An item with the same URL and local name already exists in the list. Connection errors 200 An error occurred during file download. 201 File not found. 202 Server not found. 203 Connection failed. 204 Connection timed out. File saving errors 300 An error occurred during saving the file to disk. 301 Error while creating or writing a temporary file (Internet Explorer only). 302 Error while creating or writing a destination file (Internet Explorer only). 303 The user cancelled saving files to disk. 304 The user clicked the Skip button in the File Exists Dialog. Memory errors 400 A memory error occured. 401 Out of memory. Other errors 500 An unexpected error occured. File list errors 600 An error occurred during the file list processing. 601 The file list was requested from an unregistered (without corresponding license key) domain. 601 - Description
-
Text message containing additional information on the error occured.
- HttpCode
-
The HTTP code of the error returned by the server. If the error has occurred on the client side, this value is equal to 0.
- Page
-
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 error occurs on the client side, this parameter contains an empty string.
- Url
-
The URL of the file which was being downloaded when the error occurred.
- Index
-
The number of the file which was being downloaded when the error occurred.
Remarks
This event is the only way to check if any errors occurred when using the M:FileDownloader.DownloadFileList method.
If the file list host name is not the same as the item host name or it does not reside within the same organization-level domain as it, File Downloader cannot download files specified in this file list.