upload zip file doesn't work in yii 1.0.8

Hello, I’m trying to upload a zip file in Yii 1.0.8 and the print_r function returns:

CUploadedFile Object ( [_name:private] => munira.zip [_tempName:private] => [_type:private] => [_size:private] => 0 [_error:private] => 1 [_e:private] => [_m:private] => )

now I tried 1.0.7 and nothing happens…it seems like a file size limitation because I put just 4 files in the zip and it worked, but I don’t have any rule in my model to limit file size…the entire file size is about 6Mb

Does anybody now whats wrong?



Thanks for your reply, WebShark,

I’ve just solved the problem…the form data was alright because small files were uploaded, the problem was the limitation of apache/php…to solve this, I added to my .htaccess file (in the main directory of the backend)

php_value max_execution_time 1200

php_value memory_limit 30M

php_value post_max_size 10M

php_value upload_max_filesize 10M

That did the trick!!!

Thanks anyway!!