Id of the file.
Name of the file.
Type of the file.
Size of the file.
Length of the internal buffer.
Optional
timeout: numberTimeout for a single check in seconds.
Optional
retries: numberNumber of retries before considering it as a failure.
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
).
Optional
timeout: numberTimeout for a single check in seconds.
Optional
retries: numberNumber 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 or if the file is complete.
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.
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.
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.
Optional
timeout: numberTimeout for a single check in seconds.
Optional
retries: numberNumber of retries before considering it as a failure.
Generate a new TransferFile instance.