Message from JavaScript discussions

October 2020

— Hello Greetings

— 

I am trying to download pdf file from node server to react client.
File gets downloaded but while opening it says, unable to open pdf

— Chrome doesn't auto-open files, as i recall, some click should be made

— It is opening in new tab

— Now open network tab and select the xhr request with the transmission, headers.. content seem to be screwed then

Message permanent page

— Content-Length: 9

— ?

— !

— ?

— You have your head, think

— I have made some changes.....now pdf is showing content only when downloaded for the first time

— When I refresh the page and download again, it is showing error in pdf