OptionsType
OptionsType =
object
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:11
Properties
Section titled “Properties”data:
UploadPieceStreamingData
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:15
The data to upload.
onProgress?
Section titled “onProgress?”
optionalonProgress?: (bytesUploaded) =>void
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:19
The progress callback.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bytesUploaded | number |
Returns
Section titled “Returns”void
pieceCid?
Section titled “pieceCid?”
optionalpieceCid?:PieceCID
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:21
The piece CID to upload.
retryCount?
Section titled “retryCount?”
optionalretryCount?:number
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:25
The number of retries. Defaults to 2.
retryDelay?
Section titled “retryDelay?”
optionalretryDelay?:number
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:27
The delay with exponential backoff between retries in milliseconds. Defaults to RETRY_CONSTANTS.RETRY_DELAY.
serviceURL
Section titled “serviceURL”serviceURL:
string
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:13
The service URL of the PDP API.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:23
The signal to abort the request.
optionalsize?:number
Defined in: packages/synapse-core/src/sp/upload-streaming.ts:17
The size of the data. If defined, it will be used to set the Content-Length header.