kukhariev / ngx-uploadx

Angular Resumable Upload Module
https://github.com/kukhariev/ngx-uploadx
MIT License
43 stars 23 forks source link

How to append additional params to the request (service)? #387

Closed zr87 closed 2 years ago

zr87 commented 2 years ago

I'm using the service-code-way example with the MultiPartFormData class as ulploaderClass given in the options config.

Scenario: the user can select between 3 options before the files are added. I'd like to append additional params to the file upload request.

A hacky solution what popped into my mind is using a interceptor to modify the outgoing request. It could work if the lib uses HttpClient - I guess.

kukhariev commented 2 years ago

Hello, Can you please specify what you call additional params? query URL parameters?