NetTalk Central

Author Topic: What is best way to handle images outside of the web folder?  (Read 3647 times)

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Hi All:  There have been many changes in NTWS since I had to deal with this and am wondering what is the best way to access images that are not stored beneath the app folder. 

In NT 7, I added a prefix to the Image on the display field, then watched for that prefix in the Webhandler SendFile embed point.  If the request included my prefix ('securedownload\') it would look for the Image in the C:\ImageFolder and send it to the client browser. 

In NT7, under Upload Form SaveFile Embed,  I used, Copy(p_web.GetValue('pho:name'), glo:ImagePath) to store the image.

Are these still the way to handle this?  Or, is this handled in a better way in NT 9?

Thanks,

Jim


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: What is best way to handle images outside of the web folder?
« Reply #1 on: May 05, 2016, 11:01:04 PM »
That all seems fine Jim.

There's been no explicit change that I can recall which would make some other approach better.

cheers
Bruce

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: What is best way to handle images outside of the web folder?
« Reply #2 on: May 06, 2016, 02:43:35 AM »
Cool.  Thanks Bruce.