Post by nexxterra » Tue Nov 29, 2011 10:55 am

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

New member

Posts

Joined
Tue Nov 29, 2011 10:48 am

Post by kdmp » Tue Nov 29, 2011 1:30 pm

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.

Kevin Davidson
Purolator Shipping Module
Canpar Shipping Module
VQMod - Paypal Transaction ID to Payment Details


Active Member

Posts

Joined
Thu Jun 04, 2009 10:40 am
Location - Ontario, Canada

Post by aaron1988 » Wed Jan 02, 2013 1:48 am

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

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by Tee.Mothiba » Tue Jul 09, 2013 5:26 pm

i have installed the extension and also increased the filemanager limit but to the life of me i still get the very same error

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by sean69 » Sun Feb 09, 2014 6:57 am

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>

Newbie

Posts

Joined
Wed Mar 09, 2011 9:51 am

Post by w3logics » Sun Aug 28, 2016 3:40 pm

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.

Newbie

Posts

Joined
Sun Aug 28, 2016 3:32 pm

Post by victorj » Mon Aug 29, 2016 5:45 am

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.

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland
Who is online

Users browsing this forum: No registered users and 27 guests