UNPKG

@nexim/upload-sdk

Version:

TypeScript SDK for seamless integration with Nexim Media Upload Service. It provides state machine-based upload handling, progress tracking, and type-safe API for image optimization and file uploads.

66 lines (35 loc) 723 B
[@nexim/upload-sdk](../README.md) / UploadFileOptions # Type Alias: UploadFileOptions > **UploadFileOptions** = `object` ## Properties ### apiEndpoint > **apiEndpoint**: `string` --- ### auth > **auth**: `UserAuth` --- ### description > **description**: `string` --- ### extraHeaders? > `optional` **extraHeaders**: `Record`\<`string`, `string`\> Extra headers to include in the request --- ### maxRetries? > `optional` **maxRetries**: `number` Maximum number of retries for the upload request. #### Default Value ```ts 3; ``` --- ### path > **path**: `string` --- ### retryDelay? > `optional` **retryDelay**: `number` Delay in milliseconds between retries. #### Default Value ```ts 2000; ```