Show pdf instead of download






















Show 1 more comment. Active Oldest Votes. You need to change the Content-disposition to inline. Pupil Pupil Add a comment. Downloading or Opening of a PDF file depends on setting in the browser. Dharam Jindal Dharam Jindal 21 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. You can help the site keep bringing you interesting and useful content and software by using these options:.

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support! Sergey Tkachenko is a software developer from Russia who started Winaero back in On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. 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! Show 1 more comment. This is for ASP. FilePath, FileMode. Open, FileAccess. Leon van Wyk Leon van Wyk 8 8 silver badges 7 7 bronze badges. Oops, there were typing errors in my previous post.

Andrew Barber 38k 20 20 gold badges 91 91 silver badges bronze badges. What previous post? If you have Apache add this to the.

Alexander Alexander 43 1 1 silver badge 4 4 bronze badges. Kindly suggest me. Thanks in advance. That does the opposite to what is asked for — Quentin. Nervous Laughter By default , when you open a pdf file in firefox, it will provide you with a popup to either save the pdf file or to open it directly and there is also a check box which says do this action automatically from now on and guess who selected it. Ashfaq nisar Ashfaq nisar 6 6 silver badges 15 15 bronze badges.

Nick Kongk. Open downloads. Cleb No mention that they use PHP. What if their backend is in Python or. He doesn't even say what framework he's talking about. I have used this code and it worked perfectly. Mohsin Mohsin 5 2 2 bronze badges. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window.



0コメント

  • 1000 / 1000