I have a simple web app that I am needing someone to select a .pdf from a file server and then display that .pdf on the web page.
I can get the user to select the .pdf via something like <input type="file" id="myFile">
I can also embed a .pdf into an iframe to display on the web app nicely with <iframe src="//path/to/file.pdf" width="100%" height="500px"></iframe>
But how do I display the .pdf the user selected from the input? Is there a way I can pass the value of the input into the src of the iframe? Can I open the .pdf in a new tab or a new html file so I don't have to refresh the entire page?