Skip to main content
Participating Frequently
February 13, 2012
Question

How to browse a directory

  • February 13, 2012
  • 2 replies
  • 1599 views

Hey

I need to browse a directory rather than a file. I should allow the users to choose the directories rather than a file. I am not sure if it is feasible in cold fusion

Can someone help

    This topic has been closed for replies.

    2 replies

    Inspiring
    February 13, 2012

    If the directory does not contain any files named index.something or default.something, then you can browse the directory.  In fact, I disagree with everything Adam said except for the part about this having nothing to do with CF.

    Community Expert
    February 13, 2012

    The original post says "allow the users to choose the directories rather than a file". Reading that, I wouldn't interpret it as meaning directory browsing on a web server, but more likely some mechanism to choose a directory in a form. I'm not sure if the OP means a directory on the client or the server, though.

    Dave Watts, CTO, Fig Leaf Software

    Dave Watts, Eidolon LLC
    Participating Frequently
    February 13, 2012

    Dave, you are right, I meant browse a directory in a server. Can you add more how to do it with Form              

    Owainnorth
    Inspiring
    February 13, 2012

    CFDirectory?

    Inspiring
    February 13, 2012

    I presume the OP is meaning "in a client browser" (like on a form).  The unhelpful answer is "this has nothing to do with CF, as what you need is something that runs on the browser", the short answer is "not natively in HTML, no", the mid length answer is"sure, it's possible with alternative client-side technologies", and the "more reading required" answer is... "you're gonna have to do it with Java or Flash or something like that".  Time to google stuff.

    Does <cfform> have a file/directory picker widget?  I cannae remember.

    --

    Adam