Hoping for a looksey at this issue: FC-874

form tools "file" type creates 2 files on server and uses the second
file as the file associated with the type.  (i happen to be using
ftsecure)


I modified packages/formtools/file.cfc (4.0.6)  on about line 169...
by changing nameconflict to Overwrite...


<cfif structKeyExists(form,
"#stMetadata.FormFieldPrefix##stMetadata.Name#") AND
len(FORM["#stMetadata.FormFieldPrefix##stMetadata.Name#"])>
<!--- This means there is currently a file associated with this
object. We need to override this file --->

<cfset uploadFileName =
listLast(FORM["#stMetadata.FormFieldPrefix##stMetadata.Name#"], "/") /
>

<cffile action="UPLOAD"
filefield="#stMetadata.FormFieldPrefix##stMetadata.Name#New"
destination="#filePath##arguments.stMetadata.ftDestination#/
#uploadFileName#"
nameconflict="Overwrite" />


<cfelse>
<!--- There is no image currently so we simply upload the image and
make it unique  --->
<cffile action="UPLOAD"
filefield="#stMetadata.FormFieldPrefix##stMetadata.Name#New"
destination="#filePath##arguments.stMetadata.ftDestination#"
nameconflict="Overwrite">
</cfif>


a few other nit picks..

an "underscore" is not allowed in a file name? It is being removed by
the "cleanfilename" check... this seems extreme.

when in object admin., if you click the "Delete file" button... it
removes it from the view, but does not remove the physical file from
the file directory??



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to