NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on April 14, 2010, 04:20:58 AM

Title: File Download Example # 40
Post by: rjolda on April 14, 2010, 04:20:58 AM
Hi,
Using Net Talk 5 Web server example 40 File Download.  C6.3 9055

When I click on Document 1 it opens a window :   http://localhost:88/ServeDocument?name=doc1.pdf

Then I get a 404 error - page cannot be found.

The file doc1.pdf does exist in the directory that I am running the Web server in.

So....

Questions:
1.  Does the Web App serve files from the running directory or below the running directory?
2. Why does the Web Server not see and deliver pdf1.doc if it does exist?
3. Where and how do I specify a file in a different path?

Thanks,
Ron Jolda
Title: Re: File Download Example # 40
Post by: rjolda on April 14, 2010, 04:57:53 AM
Aha,
The file has to be in a directory BELOW the Web app - then it will download OK!
Ron