settings for max file upload size

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

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 -

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??