Application.Download(...) blocked by PDF Viewer extension in Chrome

0
0

Hello team,

 

We have a code to download a file which looks like:

Application.Download(ms, $”{fileName}.pdf”);
Which downloads file fine, but when PDF Viewer extension installed in Chrome it’s tried to be opened instead and error appears (See attached screenshot).
Can you suggest a quick solution on how to avoid this error and keep downloading file?
Michael
Attachment
  • You must to post comments
0
0

Cannot reproduce with the PDF Viewer extension but it could be a different one. It seems to use pdf.js, which is also already available in wisej so you don’t need the extension. Other than that, there is nothing we can do to change the extension’s behavior. Application.Download() responds with a content type “attachment” instead on “inline”, which is used to download instead of opening the file.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.