Harold Underwood's Ownd

View a pdf instead of download

2021.12.15 22:41






















Is there anything in computer win 10 or edge setting I should turn on or off? Please help it is really annoying. This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse. Details required :. Cancel Submit. Previous Next. Paulo GM Independent Advisor. Hi PeteSoty, I am Paulo. I'm an Independent Advisor.


Standard disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP Potentially Unwanted Products.


Thoroughly research any product advertised on the site before you decide to download and install it. I hope this helps with your concern. How satisfied are you with this reply? Thanks for your feedback, it helps us improve the site. In reply to Paulo GM's post on March 10, Thanks Paulo for your response.


Hi PeteSoty, Sorry if that didn't help. I found a good solution! Click on the PDF link. Active 9 months ago. Viewed 27k times. Improve this question. AdarshMPallickal No I'm not using it — user AdarshMPallickal yup given and its working thanks a lot guys — user Show 1 more comment. Active Oldest Votes. You need to change the Content-disposition to inline. Improve this answer. Pupil Pupil Improve this question. Peter Mortensen Add a comment. Active Oldest Votes. Improve this answer.


Quentin k gold badges silver badges bronze badges. ColinM ColinM Taboada but then the user's system may not know the file type. Perhaps if you want to override the user's preferences then octet-stream would be the way to go, but giving the correct type and a suggested filename is the "correct" way to provide a download.


So my question is should the content type be set before uploading? And also, we get only a link from the backend team, a url that gives the file path, that we open in new tab using:window. Kailas I don't understand what you're trying to do..


These headers have no effect on a file upload, you need to have the code behind the url set the headers every time it is downloaded by the client. ColinM Thanks buddy, you said it right, the issue when we debugged was the mime type was set while uploading the files.


This should be done by the back-end team. I tried to get codes on how to add headers in java script but was not successful. Thanks, as I got the real idea cleared from you Show 2 more comments. It uses the custom filename specified on the view side. Christophe Roussy Christophe Roussy Akshay Akshay 2, 3 3 gold badges 33 33 silver badges 70 70 bronze badges. If you have control over the server code you should use 'attachement' as this will allow to use the same filename generation code.


If you have no control over the server this is a good solution. This is a brilliant solution to the problem however, as always, IE is holding us back from using it: caniuse. Important to note that this does not work across domains e. If downloading from one domain, the download attribute will not work if content is stored on a different domain.


CORS may allow that content to pass through haven't tested. Yes figured! This is for ASP. Tip To have PDF files open in the browser again, repeat these steps and select the Preview in Firefox option or Use other option to choose another program.


Internet browser help and support. Was this page useful?