How to do file validation in web2py and write custom validator to validate files?

In this article, I will explain built in validator IS_IMAGE  and  IS_UPLOAD_FILENAME, also a custom validator. It is important to validate file uploaded on server to restrict malicious files like .py .php, .exe bat etc. Web2py provides 2 validators to… Read the rest