When uploading images in OpenCart sometimes you might face image upload error like below:

“Warning: File too big please keep below 300KB and no more than 1000px height or width”

It is actual because OpenCart has default upload limit set i.e. 300KB and no more than 1000px in width or height.

If you want to resolve this issue, just follow the steps below:

1) Open filemanager.php file, location is : /home/username/public_html/admin/controller/common/filemanager.php. You can use ftp/cpanel. If you use cpanel then login first and then go to above file location. If you use ftp then open your ftp software, then connect you website, then go to public_html/admin/controller/common/filemanager.php.




2) After opening filemanager.php search following piece of code:

if ($this->request->files[‘image’][‘size’] > 300000) {
$json[‘error’] = $this->language->get(‘error_file_size’);
}

And change the value 300000 to the required value.That’s it! you are done.(Remember the value here is in KB)

Now you know how to resolve file too big issue in OpenCart and can upload the images of the sized you have set.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Solve:File too big please keep below 300KB and no more than 1000px height or width issue in Open Cart