It will only get you the text of the file and probably lose some formatting,
but you could read it and then output a new file using the file contents
couldn't you?

-----Original Message-----
From: Shawn McKee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 1:08 PM
To: CF-Talk
Subject: RE: <cffile> copy problem


No joy, still won't copy a file that I don't have write permissions for.

Shawn


-----Original Message-----
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:49 AM
To: Shawn McKee
Subject: RE: <cffile> copy problem


Yeah, the attributes parameter looks like a Windows-only thing.

---------- Original Message ----------------------------------
From: Shawn McKee <[EMAIL PROTECTED]>
Date: Thu, 11 Jul 2002 08:40:44 -0500

>This actually comes from the custom tag local_to_local.  In looking at it I
>am wondering if it is the combination of the attributes and the mode in the
>same tag.  I am betting I added the mode and left the attributes.
>
><cffile action="COPY" source="#Dir#/#Name#"
>destination="#attributes.DestDir#/#NewFile#" attributes="normal"
mode="664">
>
>Shawn
>
>
>-----Original Message-----
>From: Chris Norloff [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 8:35 AM
>To: Shawn McKee
>Subject: RE: <cffile> copy problem
>
>
>Ah, yes, I agree - your CF is running as userid cfadm.  Sounds like Linux
>itself is happy with what you've got.
>
>Do you have a mode parameter in your cffile statement?
>
>Here's one I use:
>
><cffile 
>action="append" 
>file="myfilename"  
>mode="644" 
>addnewline="Yes" 
>output="blah blah blah">
>
>---------- Original Message ----------------------------------
>From: Shawn McKee <[EMAIL PROTECTED]>
>Date: Thu, 11 Jul 2002 08:16:54 -0500
>
>>I'll check that but when it does successfully copy the files the end up as
>>owned by cfadm not by nobody thus my assumption that it was running as
>>cfadm.
>>
>>Shawn
>>
>>
>>-----Original Message-----
>>From: Chris Norloff [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, July 11, 2002 7:59 AM
>>To: CF-Talk; [EMAIL PROTECTED]
>>Subject: Re: <cffile> copy problem
>>
>>
>>CF (on Solaris, anyway) runs as userid nobody.  So the permissions have to
>>be right for "nobody" for cffile to work.
>>
>>Chris Norloff
>>
>>
>>---------- Original Message ----------------------------------
>>from: Shawn McKee <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>date: Wed, 10 Jul 2002 19:00:20 -0500
>>
>>>I am trying to copy a file on a Linux system that has read permissions at
>>>the group level (644 specifically).  I can log into the box and su to
>cfadm
>>>and make the copy just fine.  If I try and do it with the <cffile> tag I
>>get
>>>a permission denied.  If I change the file permissions to read, write at
>>the
>>>group level (774) all is OK.  The write permission at group should not
>>>impact my ability to read and copy the file.
>>>
>>>Any ideas?
>>>
>>>Shawn McKee
>>>Manager, Web Development
>>>NewsStand, Inc.
>>>8620 Burnet Rd., Suite 100
>>>Austin, TX 78757 USA
>>>512-334-5100
>>>Read newspapers and magazines from around the world in a whole new way.
>>>NewsStand delivers them to your PC without paper and without delay!
>>>Try: http://www.newsstand.com?NSEMC=EMNSI000001
>>>
>>>
>>>
>>>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to