CakePHP-Proffer
CakePHP-Proffer copied to clipboard
An upload plugin for CakePHP 3
``` $this->addBehavior('Proffer.Proffer', [ 'icon' => [ 'root' => WWW_ROOT . 'img', 'dir' => 'icon_dir', 'thumbnailSizes' => [ '8x8' => [ 'w' => 8, 'h' => 8, 'jpeg_quality' => 100 ],...
I'm trying to upload a file in related table's controller, but it doesn't work. Can somebody help me make this work ?
Maybe I'm doing something wrong, but I've tried to dry run the cleanup shell as documented but get no results (no filenames in log after dry run). I've looked at...
Add documentation for security purposes advising people to always validate their file upload extensions, so that they don't allow people to upload php files to their server, for example.
Double check that `exif_imagetype()` would be helpful to implement for image specific uploads.
Worth including some documentation about renaming uploaded files from a security point of view.
**CakePHP** : 3.3 **What I did ?** **MyImagesTable.php** ```php $this->addBehavior('Proffer.Proffer', [ 'image' => [ 'root' => WWW_ROOT . 'files', 'dir' => 'dir', 'thumbnailSizes' => [ 'slide' => [ 'w' =>...
When new images are uploaded the old ones need to be managed so that the server won't just fill up with useless images.
It sounds like it's worth investing some time looking into the use of FlySystem to replace the interactions with the file system.. https://github.com/thephpleague/flysystem