Changelogs: Uploader v4.2.0
A new version of Uploader has been released, version 4.2.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, report an issue on the GitHub repository.
Version: 4.2.0
Tested On: PHP 5.4.3, CakePHP 2.3.1, Composer
Requires: PHP 5.3.3, CakePHP 2, Composer
Commit Hash: 7164f34197bcf8844f880af714929eb9efbdfaec
Changes:
- Updated Transit requirement to 1.3
- Added a rotate transformer that accepts a degrees setting
- Added a exif transformer that fixes orientation and strips Exif data (should be applied first with self)
- Added a defaultPath setting to transforms
5 Comments
First off, this plugin has been great and has been very handy for my projects. Excellent work.
However, I ran into an issue with validation as I started to use your plugin in a more complex manner..
I built an application that would allow the user to upload a pdf as one model field, and thumbnail image as the other.
Everything works great until I try to add 'mimeType', 'type', 'minWidth' and 'maxWidth' requirements (the four I've tested) do not respect the 'only create' required rule. They validate on both create and update so submitting it empty always throws an error.
Am I doing this wrong or is there a chance some of these options are not in tune with the 'on' required rule? Any help would be much appreciated.
By the way, I'm running version 4.2 on php 5.4.9
I want to store uploads linked to different models in separate directories. I modify the 'uploadDir' and 'finalPath' on the fly in the beforeUpload method. It works fine, but files aren't deleted when I delete an appropriate row. What is the best way to deal with this? Can I modify 'uploadDir' and 'finalPath' in beforeDelete method for example?
Why not just set uploadDir and finalPath in the settings? Or are the paths dynamic? Regardless, deletion of files with dynamic paths should still work. Depends how your code is setup. Email me your settings or submit an issue.
BTW: The 'Security' field of the comment form always ask for 'What is 0 divided by NNNN?', so the answer is always the same.