[@rxap/upload](../wiki/globals) / FileUploadMethod

# Class: FileUploadMethod

Defined in: [file-upload.method.ts:22](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L22)

## Implements

- `Method`\<`File` \| `null`, [`FileUploadMethodParameters`](../wiki/Interface.FileUploadMethodParameters)\>

## Constructors

### new FileUploadMethod()

> **new FileUploadMethod**(): [`FileUploadMethod`](../wiki/Class.FileUploadMethod)

#### Returns

[`FileUploadMethod`](../wiki/Class.FileUploadMethod)

## Properties

### \_document

> `protected` **\_document**: `null` \| `Document` = `null`

Defined in: [file-upload.method.ts:28](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L28)

***

### \_fileInput

> `protected` **\_fileInput**: `null` \| `HTMLInputElement` = `null`

Defined in: [file-upload.method.ts:26](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L26)

***

### progress$

> **progress$**: `Subject`\<`number`\>

Defined in: [file-upload.method.ts:24](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L24)

## Accessors

### document

#### Get Signature

> **get** `protected` **document**(): `Document`

Defined in: [file-upload.method.ts:30](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L30)

##### Returns

`Document`

## Methods

### addInputToDom()

> `protected` **addInputToDom**(`accept`): `HTMLInputElement`

Defined in: [file-upload.method.ts:113](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L113)

#### Parameters

##### accept

`string`

#### Returns

`HTMLInputElement`

***

### call()

> **call**(`parameters`?): `Promise`\<`null` \| `File`\>

Defined in: [file-upload.method.ts:37](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L37)

#### Parameters

##### parameters?

[`FileUploadMethodParameters`](../wiki/Interface.FileUploadMethodParameters)

#### Returns

`Promise`\<`null` \| `File`\>

#### Implementation of

`Method.call`

***

### getDocument()

> `protected` **getDocument**(): `Document`

Defined in: [file-upload.method.ts:122](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L122)

#### Returns

`Document`

***

### handleFileInputChange()

> `protected` **handleFileInputChange**(`event`): `null` \| `File`

Defined in: [file-upload.method.ts:62](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L62)

#### Parameters

##### event

`any`

#### Returns

`null` \| `File`

***

### readFile()

> `protected` **readFile**(`file`): `Promise`\<`File`\>

Defined in: [file-upload.method.ts:84](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L84)

#### Parameters

##### file

`File`

#### Returns

`Promise`\<`File`\>

***

### removeInputFromDom()

> `protected` **removeInputFromDom**(): `void`

Defined in: [file-upload.method.ts:77](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L77)

#### Returns

`void`

***

### setDocument()

> **setDocument**(`document`): `void`

Defined in: [file-upload.method.ts:58](https://gitlab.com/rxap/packages/-/blob/eb8968c9726c4f3b80ca9361d0e0c70bd1f34695/packages/angular/upload/src/lib/file-upload.method.ts#L58)

#### Parameters

##### document

`Document`

#### Returns

`void`
