packages/eui/packages/components/eui-file-upload/utils/eui-file-upload.utils.ts
Methods |
|
Public getIconForExtension | ||||||
getIconForExtension(fileExtension: string)
|
||||||
Return the icon to be used with eui-icon-svg of the given extension or a default file icon
Parameters :
Returns :
string
Icon name as string |
Public sendData | ||||||||||||
sendData(data: any, APIEndPoint: string)
|
||||||||||||
Method that will format data in
Parameters :
Returns :
Observable<any>
The backend response. |
Public uploadProgress | ||||||||
uploadProgress(cb: (progress: number) => void)
|
||||||||
Type parameters :
|
||||||||
Method that will return the upload progress. Example :
Parameters :
Returns :
MonoTypeOperatorFunction<HttpEvent<T>>
A number between 0 and 100. |