# UseUploadProps

Defined in: [packages/synapse-react/src/warm-storage/use-upload.ts:10](https://github.com/FilOzone/synapse-sdk/blob/560869c9b2c153a9aa5bee1fa6e357bae2c11309/packages/synapse-react/src/warm-storage/use-upload.ts#L10)

## Properties

### mutation?

```ts
optional mutation: Omit<MutateOptions<AddPiecesSuccess, Error, UseUploadVariables, unknown>, "mutationFn">;
```

Defined in: [packages/synapse-react/src/warm-storage/use-upload.ts:16](https://github.com/FilOzone/synapse-sdk/blob/560869c9b2c153a9aa5bee1fa6e357bae2c11309/packages/synapse-react/src/warm-storage/use-upload.ts#L16)

***

### onHash()?

```ts
optional onHash: (hash) => void;
```

Defined in: [packages/synapse-react/src/warm-storage/use-upload.ts:14](https://github.com/FilOzone/synapse-sdk/blob/560869c9b2c153a9aa5bee1fa6e357bae2c11309/packages/synapse-react/src/warm-storage/use-upload.ts#L14)

The callback to call when the hash is available.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `hash` | `string` |

#### Returns

`void`

***

### sessionKey?

```ts
optional sessionKey: SessionKey;
```

Defined in: [packages/synapse-react/src/warm-storage/use-upload.ts:15](https://github.com/FilOzone/synapse-sdk/blob/560869c9b2c153a9aa5bee1fa6e357bae2c11309/packages/synapse-react/src/warm-storage/use-upload.ts#L15)