(You can find fresh version of this component at Code Snippet)
Just one moment! Do not use
$html->file ('UserFile');
Because construction
$_FILES['data[User][File]'] doesn't work (PHP 4.1.* at least).
So use standart html code:
Then
$this->filehandler->upload('userfile','dir');
Remember, You must creating directory at your webroot ;-)
With 777 access ;-) ..........................
Go:http://cake-php.blogspot.com/2006/09/easy-way-to-upload-files-up-to-your.html
Thursday, February 7, 2008
Easy Way To Upload Files Up To Your Server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment