We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$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
The text was updated successfully, but these errors were encountered:
Resolved in #16646
Sorry, something went wrong.
No branches or pull requests
Error: Fatal error: Uncaught ValueError: finfo_file(): Argument #1 ($finfo) cannot be empty in...
Report and fix by https://github.com/zikezhang
The text was updated successfully, but these errors were encountered: