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

CFFILE and UNC Path

New Here ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

Does anyone know a way to use CFFILE action="read" to read a filename on a Network Path?
TOPICS
Advanced techniques

Views

1.5K

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 ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

LATEST
Does anyone know a way to use CFFILE action="read" to read a filename on
a Network Path?

Yup, you put the UNC path into the file property of the tag.

<cffile file="\\server\directory\file.extension"...>

The trick with this is that the default user that the ColdFusion service
runs under "localSystem" will not have permissions (usually) to any
other system over the network. You will have to provide this user, or
configure the CF service to use a domain user (the better practice),
that has the required permissions to the desired resource.

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