Page 1 of 1

Modify OpenCart upload image size limits (OpenCart 1.4.6)

Posted: Tue Apr 06, 2010 4:06 pm
by Sergio P.
Hi everybody,
I want to increase a bit the 300kb / 1000x1000px image upload limits (OpenCart 1.4.6). Can anyone tell me how? There is a config file to modify?

Thanks

Sergio

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6)

Posted: Thu Apr 08, 2010 3:49 am
by Lightning
admin\controller\common\filemanager.php

Code: Select all

if ($this->request->files['image']['size'] > 300000) {
    $json['error'] = $this->language->get('error_file_size');
}
I have changed the 300000 into 1000000 to upload my files which where bigger then 300kb

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Fri Sep 10, 2010 10:00 am
by YarniaPDX
That's exactly the answer I needed -- thank you so much!

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Thu Feb 24, 2011 9:49 am
by imagex
hi, i a using the latest version of open cart 1.4.9.3 - there is no file called filemanager.php

how do i increase the image upload limit in this version of opencart?

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Wed Mar 09, 2011 8:45 pm
by megahuman
imagex wrote:hi, i a using the latest version of open cart 1.4.9.3 - there is no file called filemanager.php

how do i increase the image upload limit in this version of opencart?
Imagex, there is a file called Filemanager.php. I know this because I had the problem posted in this article, and fixed it how they explained. I'm using version 1.4.9.3. You may need to download the package again, and upload that file to your server. :)

Hope this helped!

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Thu Oct 20, 2011 5:08 am
by dimko
And how to change the 1000x1000 pixels?

EDIT: Found it, in: ...\admin\view\javascript\ckeditor\plugins\image\dialogs\image.js

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Tue Jul 09, 2013 5:21 pm
by Tee.Mothiba
i have increased the image file upload limit to 10mb but still get the same error

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Wed Sep 04, 2013 8:46 pm
by sandropacifico
to change image size from 1000x1000px... go to [ SYSTEM ] > [ CONFIGURATION ] edit your shop, in there go to the IMAGE then in "Size of the enlarged images of the products:" put the size what you want.

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Thu Oct 29, 2015 10:51 am
by vasif
Any answers to this problem? i have 1.55 version of open cart. I did everything is told to do here but the same problem. I optimized file and made it so small. However, whenever i upload it, it just turns 90 degree. Any help? Thanks

Re: Modify OpenCart upload image size limits (OpenCart 1.4.6

Posted: Thu Oct 29, 2015 10:58 am
by IP_CAM
this fine OC v.1.5.x OpenShop Admin Extension contains a MOD, enabling you to do such:
http://openshop.org.ua/openshop
Ernie
openshop.li/shop/