error when subscribe function post upload on angular 7

I work on angular 7 I make upload to file but i face issue when call service

it can’t subscribe service and it give me error

PostUpload(selectedoptionsId, file) {

const formData: FormData = new FormData();

formData.append(‘file’, file,;


return‘http://localhost:61265/api/DeliverySys/’, formData);



.subscribe((response: Blob) => saveAs(response, + ‘.xlsx’));

the error display when call service actually when do subscribe as below

No overload matches this call.
Overload 1 of 5, ‘(observer?: PartialObserver): Subscription’, gave the following error.
Argument of type ‘(response: Blob) => any’ is not assignable to parameter of type ‘PartialObserver’.

so How to solve issue

Show us the code so we can help you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.