cf_upload

Click to Download

Description

A perfect partner to the cf_fileupload tag. This tag actually performs the uplooad operation (like cffile) but validates the size of the image before upload and pops a javascript alert box if the file is larger than the specified limit.
 

Usage

Use in the same way that you would use the cffile upload tag.

Attributes

accept Optional A comma delimited list of file types. This attribute will not be needed if you use the cf_fileupload tag as well.
nameconflict Optional The operation to perform if the uploaded file name already exists.Valid attributes are "makeunique", "overwrite", "error" and "skip". Default is overwrite.
size Required The maximum size (in bytes) of the file to upload.
destination Required A full path for the destination for the file to upload.
filefield Required The name of the incoming form variable that contains the uploaded file.
 

Featured Links