Tag Archives: validation

Validating Image Uploads in CakePHP

Following 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 … Continue reading

Posted in CakePHP | Tagged , , , | 2 Comments

CakePHP – Uploaded File Validation in Models

Allowing uploaded files from users in PHP is fraught with danger, however by using CakePHP 1.2 and a little bit of Validation magic we can make things a little safer. First, lets start by creating a simple upload form where … Continue reading

Posted in CakePHP | Tagged , , , , , | 4 Comments