Skip to content

UseUploadPiecesVariables

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:24

The variables for the useUploadPieces mutation.

dataSet: PdpDataSet

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:26

The data set to add the pieces to.


files: File[]

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:28

The files to upload. Each file becomes one piece.


optional metadata?: (file) => MetadataObject

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:34

The piece metadata for each file.

ParameterTypeDescription
fileFileThe file being uploaded.

MetadataObject


optional signal?: AbortSignal

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:36

The signal to abort the uploads.