Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFILE

Status
Not open for further replies.

tsp1lrk

IS-IT--Management
May 30, 2001
103
US
Hello,

I'm hoping someone can help me, I'm trying to utilize the cffile tag and I keep getting the following message:

Error processing CFFILE

The directory specified in the DESTINATION attribute of the CFFILE tag (server/IS/njcampus/JOBS/) is not valid. The directory either does not exist or is not accessible by the ColdFusion service.

Apparently, the appropriate rights have been placed on the directory, I'm not sure wha tthis error means. I'm trying to upload files to an FTP server.

HELP!
Thanks in advance-
Lisa
 
There are perhaps two things going on here.

First, I believe that the destination directory you specify in CFFILE needs to be absolute, not relative.

But I do not think CFFILE can interact with an FTP server (someone can correct me if I'm wrong). It handles action="upload" directives via HTTP. Thus, you would need to upload the file to a temporary directory on your web server, then use CFFTP to get it from there over to your FTP server. Unless they're on the same box, I suppose.

Hope it helps,
-Carl
 
Hi Carl,

Thanks... the path I supplied is actually an absolute, I just didn't want to put the actual server in there. It's
destination="
I wasn't aware that cffile may not work with ftp. So what I did was set it to a directory on the web server with rights-- still doesn't work, same message!? What the heck? Just keeps saying it's an invalid destination- our Intranet group does have the cffile tag enabled, so this is driving me nuts!! What could it be?

Thanks,
Lisa
 
Hi Carl,

See that's the problem, I can't see it! Our Intranet group has access to the servers not me. I have a feeling it's on their side but they are not exactly the smartest people, what can I ask them to make sure that it's configured correctly on their side?

Thanks,
Lisa
 
In ColdFusion Administrator, there's a section called "Mappings". They set a logical path that ColdFusion will know about to a physical path (that it doesn't).

For instance, we have the physical path "/usr/docs/webroot" mapped to "/"

Although... in reading the docs for CFFILE, I see:

destination
Required. The full pathname of the destination directory or full pathname of the file on the Web server where the file is saved. A trailing slash must be included in the target directory. Use the backward slash (\) on Windows; use the forward slash (/) on UNIX.
Note: The directory does not have to be below the root of the Web server document directory.

so it's possible CFFILE isn't affected by mappings... in which case we'd be barking up the wrong tree.

Ah... wait... you said you set destination=" I believe the destination needs to be a physical path, not a virtual one. So you'd want something like: destination="D:/webroot/p2rara0/campus/content/" where you're specifying the drive and full absolute path to the physical directory... not a URL.


-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top