DownloadInterruptReason
The reason for the download interruption.
type DownloadInterruptReason =
'fileFailed' |
'fileAccessDenied' |
'fileNoSpace' |
'fileNameTooLong' |
'fileTooLarge' |
'fileVirusInfected' |
'fileTransientError' |
'fileBlocked' |
'fileSecurityCheckFailed' |
'fileTooShort' |
'fileHashMismatch' |
'fileSameAsSource' |
'networkFailed' |
'networkTimeout' |
'networkDisconnected' |
'networkServerDown' |
'networkInvalidRequest' |
'serverFailed' |
'serverNoRange' |
'serverBadContent' |
'serverUnauthorized' |
'serverCertProblem' |
'serverForbidden' |
'serverUnreachable' |
'serverContentLengthMismatch' |
'serverCrossOriginRedirect' |
'userCanceled' |
'userShutdown' |
'crash';
Types
'fileFailed'
Generic file operation failure.
'fileAccessDenied'
The file cannot be accessed due to security restrictions.
'fileNoSpace'
There is not enough room on the drive.
'fileNameTooLong'
The directory or file name is too long.
'fileTooLarge'
The file is too large for the file system to handle.
'fileVirusInfected'
The file contains a virus.
'fileTransientError'
One of the following reasons:
- The file was in use.
- Too many files are opened at once.
- We have run out of memory.
'fileBlocked'
The file was blocked due to local policy.
'fileSecurityCheckFailed'
An attempt to check the safety of the download failed due to unexpected reasons.
'fileTooShort'
An attempt was made to seek past the end of a file in opening a file (as part of resuming a previously interrupted download).
'fileHashMismatch'
The partial file didn’t match the expected hash.
'fileSameAsSource'
The source and the target of the download were the same.
'networkFailed'
Generic network failure.
'networkTimeout'
The network operation timed out.
'networkDisconnected'
The network connection has been lost.
'networkServerDown'
The server has gone down.
'networkInvalidRequest'
The network request was invalid. This may be due to the original URL or a redirected URL:
- Having an unsupported scheme.
- Being an invalid URL.
- Being disallowed by policy.
'serverFailed'
The server indicates that the operation has failed (generic).
'serverNoRange'
The server does not support range requests. Download must restart from the beginning.
'serverBadContent'
The server does not have the requested data.
'serverUnauthorized'
Server didn’t authorize access to resource.
'serverCertProblem'
Server certificate problem.
'serverForbidden'
Server access forbidden.
'serverUnreachable'
Unexpected server response. This might indicate that the responding server may not be the intended server.
'serverContentLengthMismatch'
The server sent fewer bytes than the content-length header. It may indicate that the connection was closed prematurely, or the Content-Length header was invalid. The download is only interrupted if strong validators are present. Otherwise, it is treated as finished.
'serverCrossOriginRedirect'
An unexpected cross-origin redirect happened.
'userCanceled'
The user canceled the download.
'userShutdown'
The user shut down the browser. Resume pending downloads if possible.
'crash'
The browser crashed. Resume pending downloads if possible.