Showing an upload input type
$this->form[] = ['label'=>'Document','name'=>'document','type'=>'upload','upload_encrypt'=>false];
$this->form[] = ['label'=>'Document','name'=>'document','type'=>'upload','validation'=>'image'];
//Validate the image and limit the size to 1000 KB
$this->form[] = ['label'=>'Document','name'=>'document','type'=>'upload','validation'=>'image|max:1000'];