Greetings,

Code stopped working on new server.  Wondering if this is realted to recent 
securoty add-ons, and/or the fact that SP2 is installed (CF 4.5.1)

Uploading a file works fine the first time, but any attempt at
uploading another copy fails with this error message:

 >Error processing CFFILE
 >Error attempting to generate temporary file name for directory 
'd:\http\teakwoodventures\imagedb_dkq'.
 >
 >Error: An unspecified error occurred.
 >
 >The error occurred while processing an element with a general identifier 
of (CFFILE), occupying document >position (21:5) to (21:140) in the 
template file D:\HTTP\TEAKWOODVENTURES\NEW\KQ_PREVIEWLISTING.CFM

Note: I AM using "MAKEUNIQUE"

My code:

<CFLOCK SCOPE="Session" TIMEOUT="30" TYPE="Exclusive">
<cfif Len(Trim(attributes.picture)) GT 0>
        <cffile action="UPLOAD" filefield="picture" 
destination="#application.imageURLPhysPath_dkq#" nameconflict="MAKEUNIQUE" 
accept="image/*">
        <CFIF isDefined("ServerFile")>
                <cfset SESSION.picture_name = ServerFile>
        <CFELSE>
                <cfset SESSION.picture_name = "">
        </CFIF> 
<cfelse>
        <cfset SESSION.picture_name = "">
</cfif>
</CFLOCK>

Any ideas?

Sander


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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