Difference between #13 and #14 of
How to upload a file using a model

Revision #14 has been created by samdark on May 27, 2015, 5:48:35 AM with the memo:

Added safe => false
« previous (#13)

Changes

Title unchanged

How to upload a file using a model

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

File upload

Content changed

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

public function rules()
{
return array(
array('image', 'file', 'types'=>'jpg, gif, png'
, 'safe' => false),
);
}
}
```
[...]
66 4
64 followers
Viewed: 516 510 times
Version: 1.1
Category: Tutorials
Written by: qiang
Last updated by: samdark
Created on: Feb 4, 2009
Last updated: 8 years ago
Update Article

Revisions

View all history