PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 16, 2022

[FIXED] How to change image upload size in Opencart 3

 October 16, 2022     opencart, opencart-3     No comments   

Issue

I'm looking for a way to increase image upload size in Opencart 3 from 300kb to 3mb

I tried to change oc_store/controller/setting/setting.php the 571 line in GH-repo from 300 000 to 3 000 000 to achieve approximate 3mb size.

$data['config_file_max_size'] = 300000;

Also I found a solution applicable to Opencart 2 only


Solution

In OpenCart 3 there is built in tool to change upload image size and there is no need to change the code:

Go to Admin -> System -> Settings -> Server -> Max File Size

One more tip: To change preview image size from 300x300 - go to:

admin -> Extension -> Extension -> Choose the extension type: Theme -> Product Image Thumb Size



Answered By - Alexey Nikonov
Answer Checked By - Mildred Charles (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,204,713

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing