1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | public static function initialize(Jelly_Meta $meta) { $meta->sorting(array('id' => 'desc')) ->fields(array( 'thumb' => new Field_File(array( 'label' => __('webinars.thumb'), 'description' => __('webinars.thumb.description'), 'path' => DOCROOT.'assets/webinars/', 'rules' => array( 'not_empty' => NULL, 'Upload::not_empty' => NULL, 'Upload::valid' => NULL, 'Upload::size' => array('1M'), 'Upload::type' => array(array('jpg', 'jpeg', 'png', 'gif')), ), )), )); } |