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.
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.