This repository was archived by the owner on Jan 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
This repository was archived by the owner on Jan 29, 2021. It is now read-only.
Bypassing validation #191
Copy link
Copy link
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels