I am using pdf.js viewer for displaying PDF files in webpage. In server side, I have a folder viewer. Inside this folder I have scripts & content folder.
In Server Scripting,
// Configuration
app.configure(function(){
app.use(express.static(__dirname + '/scripts'));
});
So if I put localhost/viewer.html to display the viewer.
To open a file I put localhost/viewer.html?file=sample.pdf. This is working fine if the viewer.html & sample.pdf are in same folder. But I want to load a input file from content folder for viewer.html in scripts folder