I created a simple File Custom Type. using Formtools it works great, however, i must be doing something wrong... when you add a file it creates 1 copies on the server..
filename.ext and filename1 (or sometimes 2).ext This is both on the initial creation or on an edit and reupload. Also, is there a way to set something "overwrite" the file is the name is the same? <cfcomponent extends="farcry.core.packages.types.types" displayname="Sales Rep File" hint="File objects" bUseInTree="false"> <!------------------------------------------------------------------------ type properties ------------------------------------------------------------------------- > <cfproperty ftSeq="1" ftFieldset="File Details" name="title" type="string" hint="Meaningful reference title for file" required="yes" ftvalidation="required" default="" ftLabel="Title" blabel="true" /> <cfproperty ftSeq="2" ftFieldset="File Details" name="description" type="string" hint="A description of the file to be uploaded." required="No" default="" fttype="longchar" ftLabel="Description" /> <cfproperty ftSeq="3" ftFieldset="File Details" name="filename" type="string" hint="The name of the file to be uploaded" required="yes" ftvalidation="required" default="" ftType="file" ftLabel="File" ftDestination="/salepartners/files" ftSecure="true" /> <cfproperty ftSeq="20" ftFieldset="Publishing Details" name="documentDate" type="date" hint="The date of the attached file." required="no" default="" ftLabel="Publish Date" ftDefaultType="Evaluate" ftDefault="now()" ftType="datetime" ftDateFormatMask="dd mmm yyyy" ftTimeFormatMask="hh:mm tt" ftToggleOffDateTime="false" /> <cfproperty ftSeq="21" ftFieldset="Publishing Details" name="bLibrary" type="boolean" hint="Flag to make file shared." required="no" default="1" ftLabel="Add file to library?" ftType="boolean" /> <cfproperty ftSeq="30" ftFieldset="Categorisation" name="catFile" type="string" hint="File categorisation." required="no" ftLabel="Category" ftType="category" ftalias="sp_product_lines" /> </cfcomponent> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
