---
title: "ApiConfig | Upload js | Api client"
description: "Documentation for Upload JS"
---

# Type Alias ApiConfig

type ApiConfig \= {  
    [autoUpload](#autoupload)?: boolean;  
    [file](#file): File;  
    [getCancelURI](#getcanceluri): (uploadID: string) \=> string;  
    [getProcessURI](#getprocessuri): (uploadID: string) \=> string;  
    [initializeURI](#initializeuri): string;  
    [onChange](#onchange): [ChangeCallback](https://docs.maptiler.com/upload-js/api/types/ChangeCallback/);  
    [onError](#onerror): [ErrorCallback](https://docs.maptiler.com/upload-js/api/types/ErrorCallback/);  
    [outputType](#outputtype): [OutputType](https://docs.maptiler.com/upload-js/api/types/OutputType/) | null;  
}

-   Defined in [client/types.ts:12](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L12)

##### Index

### Properties[](#properties)

[autoUpload?](#autoupload) [file](#file) [getCancelURI](#getcanceluri) [getProcessURI](#getprocessuri) [initializeURI](#initializeuri) [onChange](#onchange) [onError](#onerror) [outputType](#outputtype)

## Properties[](#properties-1)

### `Optional`autoUpload[](#autoupload)

autoUpload?: boolean

-   Defined in [client/types.ts:20](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L20)

### file[](#file)

file: File

-   Defined in [client/types.ts:13](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L13)

### getCancelURI[](#getcanceluri)

getCancelURI: (uploadID: string) \=> string

-   Defined in [client/types.ts:17](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L17)

### getProcessURI[](#getprocessuri)

getProcessURI: (uploadID: string) \=> string

-   Defined in [client/types.ts:16](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L16)

### initializeURI[](#initializeuri)

initializeURI: string

-   Defined in [client/types.ts:15](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L15)

### onChange[](#onchange)

onChange: [ChangeCallback](https://docs.maptiler.com/upload-js/api/types/ChangeCallback/)

-   Defined in [client/types.ts:18](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L18)

### onError[](#onerror)

onError: [ErrorCallback](https://docs.maptiler.com/upload-js/api/types/ErrorCallback/)

-   Defined in [client/types.ts:19](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L19)

### outputType[](#outputtype)

outputType: [OutputType](https://docs.maptiler.com/upload-js/api/types/OutputType/) | null

-   Defined in [client/types.ts:14](https://github.com/maptiler/maptiler-upload-js/blob/9a8e1ef4a2e85d959471c8ef80adaab2ecd39027/packages/core/src/client/types.ts#L14)
