settings for max file upload size

hi, wats the setting for max file upload size in the rules??

http://www.yiiframework.com/doc/api/1.1/CFileValidator#maxSize-detail

array(‘yourfile’,‘file’, ‘types’=>‘jpg, gif, png, jpeg’, ‘maxSize’=>1024 * 1024 * 50, ‘tooLarge’=>‘File has to be smaller than 50MB’)

Note that even if you put here a big value… PHP can have a restriction for the upload size… you need to check/set the upload_max_filesize in php.ini - http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize

hey guys, tks for the reply. it works =)

hello guys,

just to verify. if i use rules to indicate which file type to be uploaded, i need to do $model->validate() in the controller to validate it right??