Post by outdoordecalsop » Sat Nov 13, 2021 3:59 am

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
https://github.com/opencart/opencart/bl ... g.php#L571
I'd like to increase the limits from 300000 to 300000`0 to achieve approximate 3mb size.

$data['config_file_max_size'] = 300000;

The solutions for Opencart 2 are not applicable


Posts

Joined
Sat Nov 13, 2021 3:36 am

Post by DigitCart » Sat Nov 13, 2021 5:18 am

Hi
Please check here:
admin panel / system / settings / edit store / server tab / Max File Size

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by grgr » Sat Nov 13, 2021 8:23 am

Eeek, that's going to make your store load slowly!

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by outdoordecalsop » Fri Nov 26, 2021 9:47 pm

From the one side of course it will slow down but from other the attrectiveness will be higher.

here is solution for Opencart 3: No coding needed because all settings are in admin panel. See my answer https://stackoverflow.com/a/69955435/9277453


Posts

Joined
Sat Nov 13, 2021 3:36 am

Post by xxvirusxx » Fri Nov 26, 2021 9:54 pm

outdoordecalsop wrote:
Fri Nov 26, 2021 9:47 pm
here is solution for Opencart 3: No coding needed because all settings are in admin panel. See my answer
Solution was posted before :)
DigitCart wrote:
Sat Nov 13, 2021 5:18 am
Hi
Please check here:
admin panel / system / settings / edit store / server tab / Max File Size

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: AdsBot [Google], fordprobeparts, Majestic-12 [Bot], RoyT, supak111 and 265 guests