hi! how to upload zip/unzip file!
Page 1 of 1
Upload Zip/unzip File
#2
Posted 11 January 2013 - 05:49 AM
As we do upload images or any other file...
Check http://www.yiiframew...e-using-a-model
In rules change the type
Check http://www.yiiframew...e-using-a-model
In rules change the type
public function rules()
{
return array(
array('zipfile', 'file', 'types'=>'rar,zip,tar'),
);
}
#3
Posted 11 January 2013 - 06:50 AM
follow the same procedure you would do with a image any other file here is a link might help you
http://www.yiiframew...-using-a-model/
http://www.yiiframew...-using-a-model/
#4
Posted 13 January 2013 - 11:45 PM
Yes! I can upload now but maxsize not working this is my rules!
array('zipfile','file','types'=>'rar,zip,tar','allowEmpty'=>true, 'on'=>'update','maxSize'=>'25000'),
I can only upload 1Mb.
array('zipfile','file','types'=>'rar,zip,tar','allowEmpty'=>true, 'on'=>'update','maxSize'=>'25000'),
I can only upload 1Mb.
Share this topic:
Page 1 of 1

Help














