Checking for Oversized Uploads using PHP

It’s always good practice to validate the uploads that you allow from the end-user are not exceeding your application or system limitations.

Here is an example of how to check if an uploaded file exceeds the default limit value held in your php.ini configuration.

 

Author: Richard Soares

Director of Software Development & Senior Technical Project Manager