> This may seem a question with a very obvious answer, but for some reason I
> cannot get this to work.
>
> I run a tag that outputs data to a variable called userfile.
> I want to take the contents of the userfile variable, and write it with CF
> to the server directory
> c:\blahblah\#username#
>
> How the heck do I do that? :)
>
> CFFILE doesn't seem to want to work, it expects a form variable with the
> file included as in a file field on a form.
> Passing it the variable #userfile# doesn't seem to work.
>
Right. If CF could read files on a users machine, that would be a major
security risk. CF cannot read data from the clients machine. The client has
to upload the file to server. Period. Unless you use some funky Java or
signed JavaScript, but you don't want to do that.
Oh, I'm sorry - forget all of the above. It's 100% wrong. Are you simply
asking how to write to a dynamic file? Did you try <CFFILE ACTION="Write"
FILE="c:\blahblah\#username#" OUTPUT="#userfile#">
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists