#PDF download problem / Content-Disposition header is missing
1 messages · Page 1 of 1 (latest)
what did you get from another http client like cURL? use curl -I to see the response headers only
so you don't know curl tool?
I want to see if this is an issue with your client (that this.http.get)
i do not know it no
I've been using yours approach with no worries so far
Try another http client instead of your app like Insomnia, Postman, cURL, https://hoppscotch.io
then you could see if those response headers are well defined
i have authenticator so it get unauthorized
then you could remove the auth logic
or do you need that to perform your logic?
the goal here is to see the response headers and if the file is being properly sent
I could try, but its hard, cant i just log in on postman or something
yeah
ok so somehow you got a application/json instead of application/pdf
are you sure that that downloadPDF is being invoked? I mean, is there a chance of another route overwriting that one
I think so ye let me put a git with these file so u can see
https://github.com/SkyFerian/PDF-problem
i made some files, these are not correct paths, but i couldn't import my whole project because its to big
So i added only necessary files
Did u see something wrong ? should i maybe make a new controller and service for file upload, file download ?
i made a service/ controller for uploading and downloading pdf's but it keeps giving me content disposition header is missing so it does not get overwritten