Recommend this page to a friend! |
Classes of Alexey Dodonov | mezon-security | README.md | Download |
|
DownloadSecurity validationsIntroMezon provides set of classes wich will help you to validate data from front-end InstallationJust print in console
And that's all ) Files validationsSize validationsFirst 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. Mime-types validationsYou 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. Image validatorsYou can use validators for the image size:
I'll be very glad if you'll press "STAR" button ) |