UseUploadPiecesVariables
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:24
The variables for the useUploadPieces mutation.
Properties
Section titled “Properties”dataSet
Section titled “dataSet”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.
metadata?
Section titled “metadata?”
optionalmetadata?: (file) =>MetadataObject
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:34
The piece metadata for each file.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
file | File | The file being uploaded. |
Returns
Section titled “Returns”signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:36
The signal to abort the uploads.