|Classes of Alexey Dodonov||mezon-security||README.md||Download|
Mezon provides set of classes wich will help you to validate data from front-end
Just print in console
And that's all )
First of all you need to create validator for the file size:
Then you can run validation
Here 'uploaded-file' is an index in the $_FILES array.
You can validate mime types of the uploading files. To do this construct special validator and pass a list of valid mime types to it's constructor
And then call isUploadedFileValid like in the example above.
You can use validators for the image size:
I'll be very glad if you'll press "STAR" button )