---
title: "IUploader"
---
# IUploader

Defined in: [src/types/uploader.d.ts:184](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L184)

## Extends

- [`IViewComponent`](./types.IViewComponent.html)

### async

`readonly` **async**: [`IAsync`](./types.IAsync.html)

Defined in: [src/types/types.d.ts:43](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L43)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`async`](./types.IViewComponent.html#async)

***

### ownerDocument

`readonly` **ownerDocument**: [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/types/types.d.ts:44](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L44)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`ownerDocument`](./types.IViewComponent.html#ownerdocument)

***

### od

`readonly` **od**: [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/types/types.d.ts:45](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L45)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`od`](./types.IViewComponent.html#od)

***

### ownerWindow

`readonly` **ownerWindow**: [`Window`](https://developer.mozilla.org/docs/Web/API/Window)

Defined in: [src/types/types.d.ts:46](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L46)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`ownerWindow`](./types.IViewComponent.html#ownerwindow)

***

### ow

`readonly` **ow**: [`Window`](https://developer.mozilla.org/docs/Web/API/Window)

Defined in: [src/types/types.d.ts:47](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L47)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`ow`](./types.IViewComponent.html#ow)

***

### componentName

`readonly` **componentName**: `string`

Defined in: [src/types/types.d.ts:51](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L51)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`componentName`](./types.IViewComponent.html#componentname)

***

### uid

`readonly` **uid**: `string`

Defined in: [src/types/types.d.ts:62](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L62)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`uid`](./types.IViewComponent.html#uid)

***

### isDestructed

`readonly` **isDestructed**: `boolean`

Defined in: [src/types/types.d.ts:63](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L63)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`isDestructed`](./types.IViewComponent.html#isdestructed)

***

### isInDestruct

`readonly` **isInDestruct**: `boolean`

Defined in: [src/types/types.d.ts:64](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L64)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`isInDestruct`](./types.IViewComponent.html#isindestruct)

***

### isReady

`readonly` **isReady**: `boolean`

Defined in: [src/types/types.d.ts:65](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L65)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`isReady`](./types.IViewComponent.html#isready)

***

### componentStatus

`readonly` **componentStatus**: [`ComponentStatus`](../modules/types.html#componentstatus)

Defined in: [src/types/types.d.ts:67](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L67)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`componentStatus`](./types.IViewComponent.html#componentstatus)

***

### i18n

`readonly` **i18n**: (`text`, ...`params`) => `string`

Defined in: [src/types/types.d.ts:82](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L82)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `text` | `string` |
| ...`params` | (`string` \| `number`)[] |

#### Returns

`string`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`i18n`](./types.IViewComponent.html#i18n)

***

### defaultTimeout

`readonly` **defaultTimeout**: `number`

Defined in: [src/types/types.d.ts:83](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L83)

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`defaultTimeout`](./types.IViewComponent.html#defaulttimeout)

***

### jodit

`readonly` **jodit**: [`IViewBased`](./types.IViewBased.html)

Defined in: [src/types/uploader.d.ts:185](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L185)

#### Overrides

[`IViewComponent`](./types.IViewComponent.html).[`jodit`](./types.IViewComponent.html#jodit)

***

### j

`readonly` **j**: [`IViewBased`](./types.IViewBased.html)\<[`IViewOptions`](./types.IViewOptions.html)\>

Defined in: [src/types/uploader.d.ts:186](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L186)

#### Overrides

[`IViewComponent`](./types.IViewComponent.html).[`j`](./types.IViewComponent.html#j)

***

### options

`readonly` **options**: [`IUploaderOptions`](./types.IUploaderOptions.html)\<`IUploader`\>

Defined in: [src/types/uploader.d.ts:188](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L188)

***

### o

`readonly` **o**: [`IUploaderOptions`](./types.IUploaderOptions.html)\<`IUploader`\>

Defined in: [src/types/uploader.d.ts:189](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L189)

***

### path

`readonly` **path**: `string`

Defined in: [src/types/uploader.d.ts:205](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L205)

***

### source

`readonly` **source**: `string`

Defined in: [src/types/uploader.d.ts:207](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L207)

### destruct()

**destruct**(`jodit?`): `any`

Defined in: [src/types/types.d.ts:32](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L32)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `jodit?` | [`IViewBased`](./types.IViewBased.html)\<[`IViewOptions`](./types.IViewOptions.html)\> |

#### Returns

`any`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`destruct`](./types.IViewComponent.html#destruct)

***

### get()

**get**\<`T`\>(`chain`, `obj?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/types/types.d.ts:49](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L49)

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `chain` | `string` |
| `obj?` | [`IDictionary`](../modules/types.html#idictionary)\<`any`, `string`\> |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`get`](./types.IViewComponent.html#get)

***

### className()

**className**(): `string`

Defined in: [src/types/types.d.ts:52](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L52)

#### Returns

`string`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`className`](./types.IViewComponent.html#classname)

***

#### Call Signature

**getFullElName**(`elementName`): `string`

Defined in: [src/types/types.d.ts:54](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L54)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `elementName` | `string` |

##### Returns

`string`

##### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`getFullElName`](./types.IViewComponent.html#getfullelname)

#### Call Signature

**getFullElName**(`elementName`, `mod`): `string`

Defined in: [src/types/types.d.ts:55](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L55)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `elementName` | `string` |
| `mod` | `string` |

##### Returns

`string`

##### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`getFullElName`](./types.IViewComponent.html#getfullelname)

#### Call Signature

**getFullElName**(`elementName`, `mod?`, `modValue?`): `string`

Defined in: [src/types/types.d.ts:56](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L56)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `elementName` | `string` |
| `mod?` | `string` |
| `modValue?` | `string` \| `boolean` |

##### Returns

`string`

##### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`getFullElName`](./types.IViewComponent.html#getfullelname)

***

### setStatus()

**setStatus**(`componentStatus`): `void`

Defined in: [src/types/types.d.ts:68](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L68)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `componentStatus` | [`ComponentStatus`](../modules/types.html#componentstatus) |

#### Returns

`void`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`setStatus`](./types.IViewComponent.html#setstatus)

***

### hookStatus()

**hookStatus**(`status`, `callback`): `void`

Defined in: [src/types/types.d.ts:70](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L70)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `status` | [`ComponentStatus`](../modules/types.html#componentstatus) |
| `callback` | (`component`) => `void` |

#### Returns

`void`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`hookStatus`](./types.IViewComponent.html#hookstatus)

***

### bindDestruct()

**bindDestruct**(`component`): `this`

Defined in: [src/types/types.d.ts:75](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L75)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `component` | [`IComponent`](./types.IComponent.html) |

#### Returns

`this`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`bindDestruct`](./types.IViewComponent.html#binddestruct)

***

### setParentView()

**setParentView**(`jodit`): `this`

Defined in: [src/types/types.d.ts:81](https://github.com/xdan/jodit/blob/main/src/types/types.d.ts#L81)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `jodit` | [`IViewBased`](./types.IViewBased.html) |

#### Returns

`this`

#### Inherited from

[`IViewComponent`](./types.IViewComponent.html).[`setParentView`](./types.IViewComponent.html#setparentview)

***

### bind()

**bind**(`form`, `handlerSuccess?`, `handlerError?`): `void`

Defined in: [src/types/uploader.d.ts:191](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L191)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `form` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `handlerSuccess?` | [`HandlerSuccess`](../modules/types.html#handlersuccess) |
| `handlerError?` | [`HandlerError`](../modules/types.html#handlererror) |

#### Returns

`void`

***

### uploadRemoteImage()

**uploadRemoteImage**(`url`, `handlerSuccess?`, `handlerError?`): `void`

Defined in: [src/types/uploader.d.ts:197](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L197)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `url` | `string` |
| `handlerSuccess?` | [`HandlerSuccess`](../modules/types.html#handlersuccess) |
| `handlerError?` | [`HandlerError`](../modules/types.html#handlererror) |

#### Returns

`void`

***

### upload()

**upload**(`files`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`IUploaderData`](./types.IUploaderData.html)\>

Defined in: [src/types/uploader.d.ts:203](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L203)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `files` | [`FileList`](https://developer.mozilla.org/docs/Web/API/FileList) \| [`File`](https://developer.mozilla.org/docs/Web/API/File)[] \| `null` |

#### Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`IUploaderData`](./types.IUploaderData.html)\>

***

### setPath()

**setPath**(`path`): `this`

Defined in: [src/types/uploader.d.ts:212](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L212)

It sets the path for uploading files

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `path` | `string` |

#### Returns

`this`

***

### setSource()

**setSource**(`source`): `this`

Defined in: [src/types/uploader.d.ts:217](https://github.com/xdan/jodit/blob/main/src/types/uploader.d.ts#L217)

It sets the source for connector

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `source` | `string` |

#### Returns

`this`
