How can I open a file in Coldfusion

Guest
Oct 07, 2015 Oct 07, 2015

Copy link to clipboard

Copied

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.

Views

108

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 07, 2015 Oct 07, 2015

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines