How To Increase The Cuploaded File Size

Hi ,

I have doubt in cuploadedfile ,in that file image files are uploaded perfectly But the video files not uploaded .If i upload the video it throws the error:ur uploaded file size greater than 2Mb how do i rectify it.

Any one know please tell me

Thank u

Hi

did you have set rules like that ?


public function rules()

{

 return  array(

            ...

            array(, 

                    'file',

                    'maxSize'=>1024 * 1024 * 2,

                    'tooLarge'=>'The file was larger than 2MB...',

            ),

        );

}

also check the limi of php.ini

Thank u 4 ur reply KonApaz

I didn't define any size but it shows the error.

And one more doubt php.ini means.where it should be placed .

you have to change upload_max_filesize in php.ini file, so which server you user?

wampserver,xampserver,lampserver or online server?

how to tell php to parse custom php.ini on hosted server

ini_get(‘upload_max_filesize’ to get value or

ini_set(‘upload_max_filesize’, ‘20M’); to set

And use the ".user.ini" file that is supported since PHP 5.3.0.

http://php.net/manual/en/configuration.file.per-user.php

I m using wampserver

I don’t understand what the php site says about ini files. could you please explain what are they saying

Hi gud mrng ,

1 Like

hi gud mrng,

I have one doubt about strobe media player.

In that extension i used the coding in view part.In the widget i changed only the src attribute .

I got an error when i run the video,

We are unable to connect to the content you have requested.we apologize for the inconvenience.

Please if anyone know that answer tell me how do i rectify it.