Aldeag Posted June 24, 2015 Share Posted June 24, 2015 (edited) 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 June 24, 2015 by Aldeag (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 4, 2015 Share Posted July 4, 2015 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 More sharing options...
Aldeag Posted July 5, 2015 Author Share Posted July 5, 2015 (edited) 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 July 5, 2015 by Aldeag (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 6, 2015 Share Posted July 6, 2015 Just remove this part so you force it to take 100M if (Tools::convertBytes(ini_get('upload_max_filesize')) < Tools::convertBytes('100M')) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now