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