NetTalk Central

Author Topic: Example 40 static file  (Read 3679 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Example 40 static file
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Example 40 static file
« Reply #1 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