The excellent MeioUpload Behavior packaged as a plugin, with translations and phpThumb
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


MeioUpload packaged as a plugin

WARNING : this plugin is based on an old version of MeioUpload, you should probably use jrbasso's plugin which is up-to-date.

This plugin provides an easy way to include MeioUpload Behavior from Vinicius Mendes in your application, as well as the possibility to translate the error message (orignially only in portuguese) and the use of phpThumb as a better thumbnail generator.

It adds :


  • Clone from github : in your plugin directory type git clone git:// meio_upload
  • Add as a git submodule : in your plugin directory type git submodule add git:// meio_upload
  • Download an archive from github and extract it in /plugins/meio_upload


In a model that needs uploading, replace the class declaration with :

App::import('Plugin', 'MeioUploadAppModel');
class MyModel extends MeioUploadAppModel {

This is needed to translate the error messages, since you can't use the __() function in var $validate declaration, they are translated afterwards in MeioUploadappModel::invalidate() as seen in the CakeBook (last paragraph).

The rest of the documentation is included at the original website : and in the source code of the behavior.


French translation is included, to add a translation :

  1. Create a new .po file from /plugins/meio_upload/locale/meio_upload.pot with a tool like PoEdit
  2. Save the finished translation to /plugins/meio_upload/locale/<your locale>/LC_MESSAGES/meio_upload.po
  3. Send me a pull request or an email to so that I can include it in the plugin