Jump to content

Cannot upload images as big as 150kb


Recommended Posts

Hello:

I made a clean installation of Prestashop 1.6.0.14 and everything seems OK, but yes, there is a problem. When I create a product and I add its images, if they are bigger that 140kb or so, I get an error. No message, just a pink triangle.

At first I thought it cannot upload any image, but they load if they are about 120kb or less.

 

It happens the same even with images for banners, not only products.

 

I had 1.4.9 before and I never got problems like this.

I uploaded bigger images without problems. I don´t want to resize each image.

 

Yes, I have 777 permisions in the img folder, I checked that maximun size for uploading images is 2M and I put 4M without success

Edited by Aldeag (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Try checking this out in config.inc.php

 

if (Tools::convertBytes(ini_get('upload_max_filesize')) < Tools::convertBytes('100M'))
ini_set('upload_max_filesize', '100M');
 
And set it to a fixed number without conditions
Link to comment
Share on other sites

 

Try checking this out in config.inc.php

 

if (Tools::convertBytes(ini_get('upload_max_filesize')) < Tools::convertBytes('100M'))
ini_set('upload_max_filesize', '100M');

 

 

Thanks a lot

 

This is exactly what I have:

if (Tools::convertBytes(ini_get('upload_max_filesize')) < Tools::convertBytes('100M'))

    ini_set('upload_max_filesize', '100M');

 

I don´t know what you mean with:  And set it to a fixed number without conditions

Edited by Aldeag (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...