Closed evilkent911 closed 5 years ago
Hi @evilkent911,
If you're talking about bearer token witch have to be in your headers, you can add your header like this
uploader.uploadAll({method: 'POST', url: 'my_url'}, **{headers: ...}**).
The same concept has been used for building FileItem
:
upload(endpoint: UploadEndPoint, options?: any)
Options
is the Angular's object:
options: { headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: "body"; params?: HttpParams | { [param: string]: string | string[]; }; reportProgress?: boolean; responseType: "arraybuffer"; withCredentials?: boolean; }
hi @wKoza , it work. thank you
Hi @wKoza , may i know how to include token authorization in the upload service ?