uploader
uploader copied to clipboard
Bypassing validation
Hi, i have this rule:
public $actsAs = array(
'Uploader.Attachment' => array(
'image_url' => array(
)
),
'Uploader.FileValidation' => array(
'image_url' => array(
'required' => false,
'extension' => array(
'value' => array('jpg', 'jpeg'),
'error' => 'Invalid extension'
),
'mimeType' => array(
'value' => array('image/jpeg'),
'error' => 'Invalid mime type'
),
'type' => array(
'value' => 'image',
'error' => 'Invalid type'
)
)
)
);
But when i try to Upload renamed font.ttf to font.jpg, it stil uploads, m i doing something wrong?