FileUploadConfig Type documentation¶
TypeScript declaration¶
Additional form fields added in the HTTP request. Example: additionalFields ? : Form field name for the uploaded file. A function to modify the HTTP request sent on the consumer side. handler ? : headers : Specify the server response type responseType ? : When sendBinary ? : import type { FileUploadConfig } from '@siemens/element-ng/file-uploader';
{ upload_user: 'Reiner Zufall', expiry_date: ' 21.12.2012' }
Record<string, string> ¶ ((req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>) ¶ string | HttpHeaders | Record<string, string | number | (string | number)[]> | Headers ¶ "arraybuffer" | "blob" | "json" | "text" ¶ true, the file will be sent directly w/o the use of FormData. You will also need to set the Content-Type header when sending binary. See: headersboolean ¶
Except where otherwise noted, content on this site is licensed under MIT License.