Intranet/Hosting Toolkit | [table of contents]

CFX_secFile `v0.2 November 30th 2001` | OPEN-SOURCE NT DLL for Cold Fusion 4.0.1 and up Lewis A. Sellers http://www.intrafoundation.com/ihtk.asp products@intrafoundation.com

## PREAMBLE

This is one of a set of secure versions of the tags CFFILE, CFDIRECTORY and CFEXECUTE, etc. They operate essentially the same the built-in 4.5.x versions except that they accept USERNAME and PASSWORD parameters used for hosting situations. They may have some additional features or lack a few (irrelevant features).

These tags were originally machined by request to compliment or replace the tags CFX_File and CFX_Directory.

# CFX_secFile

    <CFX_secFile
    	ACTION="action"
    	SOURCE="source file"
    	DESTINATION="destination file"
    	ATTRBIUTES="attributes"
    	FILE="output/input file"
    	VARIABLE="output variable"
    	ADDNEWLINE="yes/no"
    	USERNAME="user name"
    	PASSWORD="password"
    	>

This is a secure version of CFFILE. It has been machined to work exactly like CFFILE except that

- 1) UPLOAD is not used. See secHTTPPost for that functionality.
- 2) ATTRIBUTES currently are not used
- 3) It doesn't throw hard exceptions if there's a problem (they can't be handled by pre-cf4.5 servers).

Errors are returned in the secFileError variable. Return codes, if any, are returned in secFileReturnCode.

These tags use a file called secFile.txt for CFX_secFile, etc that should be located in your CustomTags folder (typically c:\cfusion\customtags). The format of the file consists of a series of lines containing three space seperated fields such as:

`<username> <password> <homedirectory>`

Edit this file as you wish.

## VERSION HISTORY

- 0.1 Feb 24th 2001. Added to IHTK.
- 0.0 Feb 11th 2001. Initial build. (Soundtrack by Linkin Park.)

fini