UploadService
injectable
Service for providing upload of different object types into a client.
Methods
Section titled “Methods”cancelItem
Section titled “cancelItem”Cancels an upload request and removes it from the list of files being uploaded.
cancelItem(id: string): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| id | string |
createDocument
Section titled “createDocument”createDocument(url: string, data: any): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| url | string | |
| data | any |
upload
Section titled “upload”Upload a file.
upload(url: string, file: File, label: string, silent: boolean): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| url | string | |
| file | File | |
| label | string | |
| silent | boolean |
uploadMultipart
Section titled “uploadMultipart”Upload files using multipart upload.
uploadMultipart(url: string, files: File[], data: any, label: string, silent: boolean): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| url | string | |
| files | File[] | |
| data | any | |
| label | string | |
| silent | boolean |