cf_filetype

Description

Validation for the file input field. Only allows extensions specified to be submitted
 

Usage

Put anywhere in a form in place of the file input field. This tag can be used in both "form" and "cfform" tags. A javascript function is required in the form tag to make this function.

"form" - onSubmit="return CheckFileField(this)"
"cfform" - onSubmit="return CheckFileField(_CF_this)"

Attributes

accept Optional A comma delimited list of all the file extensions that are accepted for the upload.
required Optional Specifies whether the formfield is required or not. Set attribute to "yes" to make it required. Default is "No".
name Required The name of the formfield.
 

Featured Links