Back to Top

How to increase Product Imagesize in Opencart

To increase Product Imagesize in Opencart

Here, I come with one more new article in Opencart.In this quick article, I am going to share how to increase product image upload size into Opencart.

In Opencart, Whenever you are trying to upload product image from admin panel, you will get the alert message something like “maximum image upload limit 300kb only.”
Let’s understand that how to do it.

First of all, Go to the folder you have installed the open cart. and go to the below path and open file filemanager.php file.

admin\controller\common\filemanager.php

and find the below line of code into it:

if ($this->request->files['image']['size'] > 300000)

and replace it with the following line which increase the size to 10 MB.

if ($this->request->files['image']['size'] > 1024000)

Keep in Mind You need to change the value as per your requirement.

That’s it. Now you can upload any size of the file you want.

Thank you for reading.Feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Comments (1)

  1. I think that the size you specified in the code lets you upload only files up to 1 MB, not 10.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How to Lock File in PHP

Posted on 7 years ago

Bhumi

How To hide WordPress Toolbar

Posted on 2 years ago

Bhumi

How BlockChain and Ethereum works?

Posted on 1 year ago

Bhumi

Create Custom Page Tabs for Facebook Page

Posted on 7 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 3 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 4 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 4 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 5 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 5 years ago

Bhumi