PHP Classes

error max file size IF

Recommend this page to a friend!

      Classe Para Upload e Validação  >  All threads  >  error max file size IF  >  (Un) Subscribe thread alerts  
Subject:error max file size IF
Summary:this is wrong _size >_maxSize
Messages:1
Author:JF DV
Date:2016-09-24 15:39:00
 

 


  1. error max file size IF   Reply   Report abuse  
Picture of JF DV JF DV - 2016-09-24 15:39:00
//ORIGINAL, LINE 179

//if the image size is larger than size limit.

if(($this->_size > 0) && ( $this->_size > $this->_maxSize))

/*============================*/

Proper Comparison

//if the image size is smaller than size limit.

if(($this->_size > 0) && ( $this->_size < $this->_maxSize))