You have to pass your attribute name from your model…
Below method needs attribute name
/**
* Get the cropping coordinates from post.
*
* @param type $attribute The model attribute name used.
* @return array Cropping coordinates indexed by : x, y, h, w
*/
public function getCoordsFromPost($attribute)
{
$coords = array('x' => null, 'y' => null, 'h' => null, 'w' => null);
foreach ($coords as $key => $value) {
$coords[$key] = $_POST[$attribute . '_' . $key];
}
return $coords;
}
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.How to increase the file size.