Modify OpenCart upload image size limits

By | July 30, 2016

Modify OpenCart upload image size limits

Opencart is a popularly used ecommerce framework. When adding product images or category images to a product or to a category sometimes we get  upload image size is large. This is because Opencart by default sets the maximum image size limit to 300kb with 1000x1000px resolution.

Modify OpenCart upload image size limits

Modify OpenCart upload image size limits

Unfortunately we can not modify Opencart upload image size limit from the admin end. To change this we need to edit the corresponding file in the code.

To modify opencart upload image size limit we need to follow the below steps,

  • Find and Open filemanager controller in the following path,

admin\controller\common\filemanager.php

  • Find the below line,

     
  • Change the 300000 value to whatever you need or simply comment this condition if you want to allow any size.

Now log into your admin panel and upload large image and check.

 

🔥0

Leave a Reply