CKFileUpload

Class/Module:
Class
In:
lib/cgikit.rb
Parent:
CKElement

Description

CKFileUpload generates an input form to upload files. To use this, set "enctype" attribute of CKForm to "multipart/form-data" or "fileupload" attribute to true.

Bindings

Required attribute: data and file

data:Variable of the attribute is set the uploaded file as a CKByteData object.
file:Path of the uploaded file.
enabled:If the value is false, the element appears but is not active.

Programming Topics

Methods

bind_request
own_attributes
run
to_s

Included modules

ElementAttribute

Public Class Methods

bind_request( component, definition, value, id )
own_attributes()

Public Instance Methods

run()
to_s()