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.
1 2 3 | admin\controller\common\filemanager.php |
and find the below line of code into it:
1 2 3 | if ($this->request->files['image']['size'] > 300000) |
and replace it with the following line which increase the size to 10 MB.
1 2 3 | 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)