Links
 
cf_fileupload Click to Download
 
Description
A modified version of the cf_filetype tag. This tag carries out the same function but has extra features like making sure that the correct file type is not uploaded even when it is not a required field. Also includes size and class attributes for general formatting.
 
Usage
To put in a form to validate a file to upload. Use this tag in place of the HTML file input field.

This tag can be used in both a "form" and a "cfform". Call the following functions in the form tag.

"form" - onSubmit="return CheckFileField(this)"
"cfform" - onSubmit="return CheckFileField(_CF_this)"
 
Attributes
Name Type Description
required Optional A yes or no value. If set to yes, will not allow you to submit the form unless a value is entered in the formfield. If set to no, will allow you to submit but will still validate if a wrong file type is submitted. Default is yes.
size Optional General formatting. The length of the formfield.
class Optional General formatting. The class for a stylesheet to be used on the form.
name Required The name of the form field
accept Required A comma delimited list of all the file extensions to be allowed.
 
 
 
Contact Us
Tel Fax
 
Email
 
Datapartners
 
         
DP Products DP Services DP Portals


 © 2008 Datapartners. All Rights Reserved.