Monday, June 16th, 2008
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 relies on the fact that you have LibGD installed ...
Posted in CakePHP | 2 Comments »
Sunday, June 1st, 2008
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 the users will be uploading their files
Nothing particularly special here, just ...
Posted in CakePHP | 3 Comments »