Demo PHP Image Upload with Size Type Dimension Validation


This demo is for testing uploaded image file in the following aspects.

  • Check if file input not empty.
  • Check if the image file is JPEG or PNG.
  • Check if file size less than 2MB.
  • Check if the image dimension is within 300X200.
Choose Image file:

Back to Tutorial

Back to Top