mjohnson / uploader
File uploader and validation plugin for CakePHP.
Installs: 75 232
Dependents: 0
Suggesters: 1
Security: 0
Stars: 197
Watchers: 27
Forks: 72
Open Issues: 4
Type:cakephp-plugin
Requires
- php: >=5.3.3
- ext-curl: *
- ext-fileinfo: *
- ext-mbstring: *
- composer/installers: *
- mjohnson/transit: ~1.6
Suggests
- ext-exif: Extract exif data from images
- ext-gd: Enable the GD library for image transforming
- aws/aws-sdk-php: ~2.7
- dev-master
- 4.6.1
- 4.6.0
- 4.5.5
- 4.5.4
- 4.5.3
- 4.5.2
- 4.5.1
- 4.5.0
- 4.4.0
- 4.3.6
- 4.3.5
- 4.3.4
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.1
- 4.2.0
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.15
- 4.0.14
- 4.0.13
- 4.0.12
- 4.0.11
- 4.0.10
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-rc2
- 4.0.0-rc1
- 4.0.0-beta
- 3.x-dev
- 3.7.4
- 3.7.3
- 3.7.2
- 3.7.1
This package is auto-updated.
Last update: 2022-02-01 12:22:08 UTC
README
A CakePHP plugin that will validate and upload files through the model layer. Provides support for image transformation and remote storage transportation.
Requirements
- PHP 5.3.3
- Fileinfo
- Multibyte
- Curl
- CakePHP 2
- Composer
Compatibility
- v2.x - CakePHP 1.3, PHP 5.2
- v3.x - CakePHP 2, PHP 5.2
- v4.x - CakePHP 2, PHP 5.3, Composer
Features
- Upload files automatically through Model::save() by using the AttachmentBehavior
- Validate files automatically through Model::save() by using the FileValidationBehavior
- Extensive list of validation rules: size, ext, type, height, width, etc
- Transform the uploaded image or create new images: crop, scale, rotate, flip, etc
- Automatic file deletion when a database record is deleted or updated
- Supports transporting files to remote storage systems like AWS
Documentation
Thorough documentation can be found here: http://milesj.me/code/cakephp/uploader