Id of the file.
Name of the file.
Type of the file.
Size of the file, in bytes.
Optionaltimeout: number
Timeout for a single check in seconds.
Optionalretries: number
Number of retries before considering it as a failure.
OptionalkeepPartsOnFailure: boolean
Keep the already received parts when a download fails (default: false).
Clear the content of the file. The user will need to download it again.
Download the file.
Maximum length for the data to ask at one time.
Function that will be called to ask for some parts of the file.
Number of parallel calls to perform (default value: 1).
Optionaltimeout: number
Timeout for a single check in seconds.
Optionalretries: number
Number of retries before considering it as a failure.
Get the Blob of the complete file.
The Blob of the file.
Get informations representing the file.
All informations representing the file.
Get informations about the TransferFile.
Informations about the TransferFile.
Check the presence of a specific part of the file.
Offset from the start.
The requested limit.
true if the part exists.
Check if the file is complete.
true if the file is complete.
Check if the file is downloading.
true if the file is downloading.
Read limit bytes at maximum from offset from the file.
Only the requested slice is read: the rest of the file stays where it is, instead of being loaded in memory.
Offset from the start.
Maximum number of bytes to return.
ArrayBuffer with the requested file part.
Receive a part of the file.
Offset from the start.
The requested limit.
ArrayBuffer containing the requested data.
Set a Blob as being the content of this file.
The Blob is kept as it is: its content is only read when a part of it is
requested. A Blob coming from an <input type="file"> is backed by the
file on disk, so a file of any size can be sent without ever being held
in memory as a whole.
Set the file as being complete.
True if the download is complete.
Set the file as being downloaded.
True if the file is being downloaded.
Set an error message.
A relevant error message.
True in case of an error.
Wait and check for presence of a specific part of the file.
Offset from the start.
The requested limit.
Timeout in seconds (default: 1)
true of the part was received.
Wait for a specific part of a file, with some retries.
Function to ask a file part to the sender.
Offset from the start.
Maximum number of bytes that we can read.
Optionaltimeout: number
Timeout for a single check in seconds.
Optionalretries: number
Number of retries before considering it as a failure.
Generate a new TransferFile instance.