NetTalk Central

Author Topic: Folder Lookup  (Read 2884 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Folder Lookup
« on: May 07, 2013, 07:02:00 AM »
Hi,

Is there a way to select a folder on a WebBrowseForm?


Ashley

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Folder Lookup
« Reply #1 on: May 07, 2013, 09:32:38 PM »
Hi Ashley,

you mean a folder name on the disk?
also - on a WebBrowse, or a Webform?

in short - tell us more about what you have in mind.

cheers
Bruce

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Folder Lookup
« Reply #2 on: May 08, 2013, 04:42:57 AM »
Hi Bruce,

I have a WebForm that has 3 entry fields which contain a path to a folder. In my C8 app I have a button on a form for a file(Directory) lookup, but I have not seen anything like that in the NT WebForm dropdown field types. Is there another way to do that?

Ashley

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Folder Lookup
« Reply #3 on: May 08, 2013, 08:04:18 AM »
Hi Ashley,

what you are talking about is really dangerous. you should never just let the server "read the folder structure" and offer it to the client unedited. That may well expose things you don't want them to see.

What I would do in this case is use the clarion DIRECTORY command to read whatever (under the web folder?) and then push the "acceptable" bits of that into a Memory table.
But I'd be very cautious here - remember you are exposing information to potential bad guys. Letting your user enter specific paths etc sounds like a bad idea,

cheers
Bruce

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Folder Lookup
« Reply #4 on: May 08, 2013, 09:49:58 AM »
Hi Bruce,

The customer never see's this information. This is my setup information for a client. Actually the customer never see's really anything other then the main page and the login screen. This WebApp is just for upload and download of data. Nothing else. They can login in but that is it...nothing for them to do.


Ashley