• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFContent Issues

New Here ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

Hi everyone,
Basically, the summary says it all. I can get CFCONTENT to work only if the file is located in a web-accessible folder but not in a non-web acessible one. This kind of defeats the purpose of using CFCONTENT for me. I don't have access to server admin so I was wondering if you need to turn something on so that the non web-accessible folder is accessible by the server itself using CFCONTENT.
Hope that made sense.
Thanks,
v_roma
TOPICS
Advanced techniques

Views

443

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
LEGEND ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

Not 100% sure, but this may be a place where one needs to use a
ColdFusion mapping (AKA not an IIS, Apache, other web server mapping).

This is an administration setting, but it may be available in the
administration API. One would define a mapping 'foobar' that points to
any directory on the server. Then one can use this mapping for various
ColdFusion tags.

I'm just not sure if CFContent is one of these tags?

v_roma wrote:
> Hi everyone,
> Basically, the summary says it all. I can get CFCONTENT to work only if the
> file is located in a web-accessible folder but not in a non-web acessible one.
> This kind of defeats the purpose of using CFCONTENT for me. I don't have
> access to server admin so I was wondering if you need to turn something on so
> that the non web-accessible folder is accessible by the server itself using
> CFCONTENT.
> Hope that made sense.
> Thanks,
> v_roma
>

Votes

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
New Here ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

Thanks, Ian. Maybe somebody out there will know if CFCONTENT requires something like that.

Votes

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
Participant ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

The whole idea of CFCONTENT is to deliver stuff, which is NOT on Web-site path. Most likely, you have a coding error (misspelled file, directory, CFM syntax, etc), or the account the Cold Fusion service is running under, does not have permission to access the specified file. No Cold Fusion mappings involved here, since CFCONTENT uses absolute physical path(s).

Votes

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
Explorer ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

LATEST
Also make sure you have the whole and correct absolute path to the file specified in the tag. On windows it will be something like d:\my\non\web\folder on *nix type systems it will be something like /my/non/web/path/.

If your sure you have the correct path then it may be a permissions issue. BTW: how did you place the file in the non-web path?

Votes

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
Resources
Documentation