Skip to content

OptionsType

OptionsType = object

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:11

data: UploadPieceStreamingData

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:15

The data to upload.


optional onProgress?: (bytesUploaded) => void

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:19

The progress callback.

ParameterType
bytesUploadednumber

void


optional pieceCid?: PieceCID

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:21

The piece CID to upload.


optional retryCount?: number

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:25

The number of retries. Defaults to 2.


optional retryDelay?: 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: string

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:13

The service URL of the PDP API.


optional signal?: AbortSignal

Defined in: packages/synapse-core/src/sp/upload-streaming.ts:23

The signal to abort the request.


optional size?: 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.