Try something along these lines. mode needs to be what ever you need
<cfif FileExists(image)>
<cffile
destination="/home/usr/whatever/yourdirectory/"
action="upload"
mode=755
nameconflict="overwrite"
filefield="image"
accept="image/jpg,image/jpeg,image/pjpeg">
<cfset image=#ServerFile#>
<cfquery datasource="yourdatasource">
UPDATE yourtable
SET image='#ServerFile#'
WHERE ID ='#ID#'
</cfquery>
<cfelse>
</cfif>
At 02:54 PM 12/29/00 -0500, you wrote:
>anyone have a problem with cffile and linux.
>it can't upload any files.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.