---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/code](../index.md) / UploadOptions

# Interface: UploadOptions

Defined in: [packages/b2c-tooling-sdk/src/operations/code/deploy.ts:75](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/7d6c51c6b3a1e8b6f2d021bea825160e6c2d0f07/packages/b2c-tooling-sdk/src/operations/code/deploy.ts#L75)

Options for upload progress reporting.

## Properties

### ignoreDirs?

> `optional` **ignoreDirs**: readonly `string`[]

Defined in: [packages/b2c-tooling-sdk/src/operations/code/deploy.ts:82](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/7d6c51c6b3a1e8b6f2d021bea825160e6c2d0f07/packages/b2c-tooling-sdk/src/operations/code/deploy.ts#L82)

Directory names to skip at any depth inside each cartridge. Replaces
[DEFAULT\_CARTRIDGE\_IGNORE\_DIRS](../variables/DEFAULT_CARTRIDGE_IGNORE_DIRS.md); pass `[]` to archive everything.

***

### maxArchiveBytes?

> `optional` **maxArchiveBytes**: `number`

Defined in: [packages/b2c-tooling-sdk/src/operations/code/deploy.ts:88](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/7d6c51c6b3a1e8b6f2d021bea825160e6c2d0f07/packages/b2c-tooling-sdk/src/operations/code/deploy.ts#L88)

Maximum size in bytes of one uploaded archive (default
[DEFAULT\_MAX\_ARCHIVE\_BYTES](../variables/DEFAULT_MAX_ARCHIVE_BYTES.md)). Larger deploys are split into several
archives, each uploaded and unzipped into the same code version.

***

### onPlan()?

> `optional` **onPlan**: (`plan`) => `void`

Defined in: [packages/b2c-tooling-sdk/src/operations/code/deploy.ts:90](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/7d6c51c6b3a1e8b6f2d021bea825160e6c2d0f07/packages/b2c-tooling-sdk/src/operations/code/deploy.ts#L90)

Called once the archive plan is known, before the first upload

#### Parameters

##### plan

[`UploadPlanInfo`](UploadPlanInfo.md)

#### Returns

`void`

***

### onProgress()?

> `optional` **onProgress**: (`info`) => `void`

Defined in: [packages/b2c-tooling-sdk/src/operations/code/deploy.ts:77](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/7d6c51c6b3a1e8b6f2d021bea825160e6c2d0f07/packages/b2c-tooling-sdk/src/operations/code/deploy.ts#L77)

Callback for progress updates. Called when a phase starts (elapsedSeconds=0) and periodically thereafter.

#### Parameters

##### info

[`UploadProgressInfo`](UploadProgressInfo.md)

#### Returns

`void`
