NetTalk Central

Author Topic: Example of displaying photos that are not in a webserver subdirectory?  (Read 10027 times)

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: Example of displaying photos that are not in a webserver subdirectory?
« Reply #15 on: August 22, 2012, 06:48:13 AM »
Hi Bill: No luck. 

When I watch this in debugview it shows that the file is not found (which is what we want -- correct?). If I understand this correctly, it should then read my code in the Webhandler embed.  There, I trap the 'securedownload/' token and assign the external path so it fetches the photo from a folder outside of the web app.  For some reason, the change is not being made.  Even when I hard-code the path it doesn't try to send the correct file.

The code appears under the _SendFile PROCEDURE embed.  Tried both before and after parent call.

Many thanks.

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: Example of displaying photos that are not in a webserver subdirectory?
« Reply #16 on: August 22, 2012, 10:37:32 PM »
Hi Jim,

Maybe send me an email and i'll help via logmein or similar. My email is in my profile on this board. Im in Sydney Australia so UTC + 10. I code from 9am to midnight most days.

Regards
Bill

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: Example of displaying photos that are not in a webserver subdirectory?
« Reply #17 on: August 23, 2012, 03:04:39 PM »
Finally got it.  I had a character wrong in the INSTRING function.  I'm really pumped because this solves what has been a nagging problem for a long time.

Special thanks to Bill Shields.