Oct 12 2008
MeioUpload Behavior 1.0.1 released!
I am glad to show you the MeioUpload Behavior 1.0.1. An improved Upload Behavior for CakePHP 1.2. It makes file uploads as simple as defining a variable.
Features
- Accepts custom directory for files to be uploaded;
- Validates the file extension and mime-type due to the behavior configuration;
- Validates the max file size;
- Allow custom validation rules;
- Allow as many thumbnails formats as you want;
- Allow more then one field to be uploadable, with custom options per field;
- Stores the directory, filesize, and mime-type in the database if the table has these fields;
- Allow the use of default files and deleting files without deleting the entire record;
- Delete files when the record is deleted or updated with a new file;
- Also works in the $model->saveAll method.
Changelog
v1.0.1
- Fixed a bug in the create folder method;
- Now you can use the $validate var of the model to apply the changes to default validation rules;
- Changed the my_array_merge function, now it’s part of the behavior, name arrayMerge;
- Allow use of {DS}, {model} and {field} constants in directory name and fields names;
- Fixed a bug with the replacement of the default names.
v1.0
- Initial release
Any bugs, features suggestions, and english errors, please tell me.
