Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CakePHP Setup for Ver. 2.*.*
vendor/file.upload. You can use any name instead of
- Have jQuery setup in your app.
- Copy jQuery File Upload files in the proper directories of your Cake app, usually
- You can now initialize jQuery-File-Upload options in your controller using following way.
App::import('Vendor', 'UploadHandler', array('file' => 'file.upload/UploadHandler.php')); $options = array( 'upload_dir' => 'Your upload directory', 'accept_file_types' => '/\.(gif|jpe?g|png)$/i' ); $upload_handler = new UploadHandler($options);
Clone this wiki locally
Press h to open a hovercard with more details.