NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: kevin plummer on March 13, 2008, 07:33:47 PM

Title: Example 40 static file
Post by: kevin plummer on March 13, 2008, 07:33:47 PM
Hi all,

I'm trying to work out how to serve up a static file (pdf) from a location outside the web folder. This example shows serving up some files from the app folder so no drive or path is needed.

what you I do to read a file  d:\mydocs\test.pdf when the app is running in c:\mywebserver ?

Cheers,

Kevin
Title: Re: Example 40 static file
Post by: Bruce on March 14, 2008, 02:59:49 AM
Hi Kevin,

Set loc:filename there to anything you like. I tried it with
loc:filename = 'c:\temp\a.pdf'
and it's fine.

ie, loc:filename should include the name & path if a path is necessary.

Cheers
Bruce