Validating Image Uploads in CakePHP
16th June, 2008 – 10:17 pmFollowing on from my article on CakePHP – Uploaded File Validation in Models, today’s snippet will show you how to use Cake’s validation rules to reject invalid images, or images which do not conform to a specified mime-type. This code relies on the fact that you have LibGD installed on your webserver.
<?php
Class Image extends [...]