Page 1 of 1

increase the product image upload size

Posted: Tue Nov 29, 2011 10:55 am
by nexxterra
I have the latest ver of open cart, tried searching but found nothing
q: How do I increase the image upload size for products. it currently rejects picts over 300K
Again, I want to increase the UPLOAD size, not display size, or the file type (found that)
Thanks
Paul

Re: increase the product image upload size

Posted: Tue Nov 29, 2011 1:30 pm
by kdmp
Hi Paul,

You were close to it if you found the file extensions!

Just remember that changing this value will be reset when you upgrade to a new version of opencart. I was going to see about writing a vqmod for this, but I haven't become an expert on that yet lol
admin/controller/common/filemanager.php
From there find:

Code: Select all

if ($this->request->files['image']['size'] > 300000) {
     $json['error'] = $this->language->get('error_file_size');
}
Just change the 300000 (Bytes) to what you need.

As a warning - this limit has been set for a reason - most likely to help with server space, so be cautious.

Re: increase the product image upload size

Posted: Wed Jan 02, 2013 1:48 am
by aaron1988
Hi,

I have created a Vqmod for this :) as i wanted the same thing.
i changed it from 300000 to 1096630

if you would like to increase it just edit the XML file :) and change the 1096630, to what ever you want :)
Kind Regards,
Aaron

Re: increase the product image upload size

Posted: Tue Jul 09, 2013 5:26 pm
by Tee.Mothiba
i have installed the extension and also increased the filemanager limit but to the life of me i still get the very same error

Re: increase the product image upload size

Posted: Sun Feb 09, 2014 6:57 am
by sean69
I just wacked that into a vqmod...
<modification>
<id>Modify upload file size</id>
<version>v1.0.x.x</version>
<vqmver>v2.x.x</vqmver>
<author>Sean Kimball</author>
<company>BigBlock Studios</company>

<file name="admin/controller/common/filemanager.php" error="skip">
<operation error="skip">

<search position="replace" error="skip">

<![CDATA[if ($this->request->files['image']['size'] > 300000) {]]>

</search>

<add>

<![CDATA[if ($this->request->files['image']['size'] > 600000) {]]>

</add>

</operation>

</file>

</modification>

Re: increase the product image upload size

Posted: Sun Aug 28, 2016 3:40 pm
by w3logics
Actually I am facing the same problem in an Opencart Store. My data base operator was uploading the products and their related images in handcrafted Furniture store named www.saharanpurfurniture.com but some images fetching the problem of the size of file and its dimensions. Although the dimensions are below 1000 pixels in size but the total size of image 300KB is not enough for a image as the industry is high demanding in the product image and looking very large resolution images for their customers. so I think this file size 300 KB is not genuine and I wish this will increased in next updation.

Re: increase the product image upload size

Posted: Mon Aug 29, 2016 5:45 am
by victorj
upload size can also be set in php server settings. limiting uploading large pictures,
uploading large pictures can also be done using ftp upload, when using a ftp program like filezilla, there is no limit in uploaf size.
be carefull, large pictures can also give out off memorie errors when they are resized in opencart.