file

file

Field component to liase with all File types

formtools.file:

Basic
<cfproperty 
    name="someFile" type="string" default="" hint="The file to process" 
    ftSeq="1" ftFieldset="General" ftLabel="File" 
    ftType="file" ftDestination="/someDirectory" />
Maximum file upload of 1mb
<cfproperty 
    name="someFile" type="string" default="" hint="The file to process" 
    ftSeq="1" ftFieldset="General" ftLabel="File" 
    ftType="file" ftDestination="/someDirectory" ftMaxSize="1048576" />
Flash upload
<cfproperty 
    name="someFile" type="string" default="" hint="The file to process" 
    ftSeq="2" ftFieldset="General" ftLabel="File" 
    ftType="file" ftDestination="/someDirectory" ftRenderType="flash" />
Secure file upload
<cfproperty 
    name="someFile" type="string" default="" hint="The file to process" 
    ftSeq="4" ftFieldset="General" ftLabel="File" 
    ftType="file" ftDestination="/someDirectory" ftSecure="true" />
PDF only (HTML)
<cfproperty 
    name="someFile" type="string" default="" hint="The file to process" 
    ftSeq="5" ftFieldset="General" ftLabel="File" 
    ftType="file" ftDestination="/someDirectory" ftAllowedFileExtensions="*.pdf" />
PDF only (jQuery)
<cfproperty 
    name="someFile" type="string" default="" hint="The file to process" 
    ftSeq="6" ftFieldset="General" ftLabel="File" 
    ftType="file" ftDestination="/someDirectory" ftRenderType="jquery" 
    ftFileTypes="*.pdf" />

Attributes

NameRequiredDefaultOptionsDescription
ftStyleNoCustom inline styles
ftRenderTypeNohtmlThis formtool offers a number of ways to render the input. (html, flash, jquery)
ftAllowedFileExtensionsNopdf,doc,ppt,xls,docx,pptx,xlsx,jpg,jpeg,png,gif,zip,rar,flv,swf,mpg,mpe,mpeg,m1s,mpa,mp2,m2a,mp2v,m2v,m2s,mov,qt,asf,asx,wmv,wma,wmx,rm,ra,ram,rmvb,mp3,mp4,3gp,ogm,mkv,aviUsed when ftRenderType is set to HTML, extentions allowed to be uploaded.
ftFacadeNo#chr(35)#application.url.webtop#chr(35)#/facade/fileupload/upload.cfmlocation of uploader facade.
ftFileTypesNo*.*Used when ftRenderType is set to flash (default *.*) or jquery (default *.jpg;*.JPG;*.jpeg;*.JPEG;), extentions allowed to be uploaded.
ftFileDescriptionNoFile TypesUsed when ftRenderType is set to HTML, text display above upload control.
ftMaxSizeNo0Maximum filesize upload in bytes.
ftOnCompleteNoUsed when ftRenderType is set to HTML, javascript to execute after file upload.
ftStartMessageNoUpload file here.Used when ftRenderType is set to jQuery. Message to display at start of upload.
ftErrorSizeMessageNoMaximum filesize is #chr(35)#arguments.stMetadata.ftMaxSize#chr(35)# kbUsed when ftRenderType is set to jQuery. Error to display when max filesize error flagged.
ftCompleteMessageNoFile upload completeUsed when ftRenderType is set to jQuery. Message to display at end of upload.
ftAfterUploadJSScriptNoUsed when ftRenderType is set to jQuery. Javascript to execute after upload compeltes.
ftSecureNofalseStore files securely outside of public webspace.
ftDestinationNoDestination of file store relative of secure/public locations.