Skip to main content
October 7, 2015
Question

How can I open a file in Coldfusion

  • October 7, 2015
  • 1 reply
  • 319 views

Is it possible to open a file in coldfusion ?

My problem is I have a list made with cfdirectory and I want to open the files (.txt) in this list via the browser.

    This topic has been closed for replies.

    1 reply

    EddieLotter
    Inspiring
    October 7, 2015

    If the text files are located within the Web site folder structure you can provide hyperlinks directly to the files, otherwise read the manual about the cfContent tag, which allows you to serve content from any file accessible by the server.

    Cheers

    Eddie