Archive

Archive for July, 2009

Cakephp Uploader Component

July 27th, 2009

Download this component at http://www.the-di-lab.com/download/uploader.rar

To use this component, simply include it in your controller .
var $components = array(’Uploader’);

And there are two main methods is provided by this component.
One is upload($dir,$file,$delCurrent) and another is removeFolder($f).

In upload method.
you pass the directory where you want to store the file to $dir,
and pass file object to $file, and specify $delCurrent to true or false.
$delCurrent determines if you want to delete current file in $dir directory.

In removeFolder method.
It will simply remove directory $f,including all objects in $f direcoty.

Please leave me comments if you need any help.

admin General Cakephp

Get Adobe Flash playerPlugin by wpburn.com wordpress themes