Closed niden closed 2 months ago
$this->add( (new File('file',['required' => true])) ->setLabel('Attach sample op-ed(available format:pdf,text,word):') ->addValidators([ new PresenceOf([ 'message' => 'please upload an op-ed file', ]), new MimeType([ "types" => [ 'application/pdf', 'application/msword', 'application/rtf', 'application/epub+zip', 'text/plain', ], "message" => "Allowed file types are :types" ]), new Max([ "size" => "2M", "included" => true, "message" => ":field exceeds the max size (:size)", ]) ]) );
Error: Fatal error: Uncaught ValueError: finfo_file(): Argument #1 ($finfo) cannot be empty in...
Report and fix by https://github.com/zikezhang
Resolved in https://github.com/phalcon/cphalcon/pull/16646
Error: Fatal error: Uncaught ValueError: finfo_file(): Argument #1 ($finfo) cannot be empty in...
Report and fix by https://github.com/zikezhang