cffileupload

Ajax File upload

 <cffileupload url="">

 cffileupload(url="");

The cffileupload tag is DEPRECATED as of ColdFusion 2016

cffileupload Attribute Reference

url
Required

The URL to the server where the files are uploaded.

width

Width of the file upload control, in pixels.

title

Title for the upload dialog.

extensionfilter

Use this attribute to specify the type of file that you will allow to be uploaded.
For example, to let only image files to be uploaded, you can specify file extensions like .jpg, .jpeg, or .png

uploadbuttonlabel

Label of the Upload button.

progressbar

Whether to display Progress Bar or not. Default true

height

Height of the file upload control, in pixels.

maxUploadSize

The maximum file size, in mega bytes, allowed for the upload. Default 10MB.

maxFileSelect

The maximum number of files allowed for the upload.

style

A CSS style specification that defines layout styles

bgcolor

The background color for the file upload control. A hexadecimal value without "#" prefixed.

addButtonLabel

Label of the Add button

name

Name of the file upload component.

oncomplete

The JavaScript function to run after the file upload completes

onerror

The JavaScript function to run on an error condition. The error can be a network error or server-side error

clearButtonLabel

Label of the Clear button

deleteButtonLabel

Label of the Delete button

align

Specifies the default alignment Values:
  • left
  • right
  • center
  • justify

wmode

Specifies the absolute positioning and layering capabilities in your browser: Values:
  • opaque
  • transparent
  • window

stopOnError

Specifies whether or not to ignore the exceptions for this operation. When the value is
true, it stops uploading, displays an appropriate error

hideUploadButton

A Boolean value that specifies if the Upload button should appear in the media player

onUploadComplete

The JavaScript function to run after the all uploads have completed

Compatibility

ColdFusion:

DEPRECATED since version 2016

Fork me on GitHub