How to upload a file using a model

Comparing #13 with #14

Revision #14 was created by samdark samdark on May 27, 2015, 5:48:35 AM.

Added safe => false

Content

[...]
// ... other attributes

public function rules()
{
return array(
array('image', 'file', 'types'=>'jpg, gif, png'
, 'safe' => false),
);
}
}
```
[...]