# FileUploadResult Type documentation

## TypeScript declaration

### [FileUploadResult](<https://github.com/siemens/element/blob/main/projects/element-ng/file-uploader/si-file-uploader.component.ts#L43-L47>)

**Kind:** interface

```
import type { FileUploadResult } from '@siemens/element-ng/file-uploader';
```

The FileUploadResult is emitted at completion of the file uploading via the `uploadCompleted` emitter. On success the Http `response` from the backend is provided and on failure, the `error` object is available.

```
interface FileUploadResult
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [error](<https://github.com/siemens/element/blob/main/projects/element-ng/file-uploader/si-file-uploader.component.ts#L46-L46>) (optional) | `Error` |  |
| [file](<https://github.com/siemens/element/blob/main/projects/element-ng/file-uploader/si-file-uploader.component.ts#L44-L44>) | `string` |  |
| [response](<https://github.com/siemens/element/blob/main/projects/element-ng/file-uploader/si-file-uploader.component.ts#L45-L45>) (optional) | `HttpResponse<unknown>` |  |
