Issue
I am unable to find, how to read filename from content disposition in angular 2 documentation. Can someone guide read the headers from server in angular 2content headers
Solution
You can try this kind of code here.
Note: Do not use map
this.http.post(URL, DATA)
.subscribe((res) => {
var headers = res.headers;
console.log(headers); //<--- Check log for content disposition
var contentDisposition = headers.get('content-disposition');
});
Answered By - Partha Sarathi Ghosh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.