chhajjaart Posted August 8, 2019 Share Posted August 8, 2019 Prestashop version : 1.7.5.2 On phpinfo.php page upload_max_filesize 256M 256M And even in "Advance Parameter > Information" Upload Max File size: 256M But in "Catalog > Products > New Products" When trying to product image get error saying "Maximum size allowed is 2". Quote Link to comment Share on other sites More sharing options...
pishkus Posted April 10 Share Posted April 10 (edited) Looks like this is a known bug and it still has not been fixed even 4 years after being reported: https://github.com/PrestaShop/PrestaShop/issues/15183 If anyone else is having same problem even on P.S. 8.1, and if you are OK with modifying core files, open file src\Adapter\Image\ProductImageFileValidator.php and comment out the following lines: if ($maxUploadSizeBytes->isGreaterThanZero() && $size->isGreaterThan($maxUploadSizeBytes)) { throw UploadedImageSizeException::build((int) (string) $maxUploadSizeBytes); } This should allow you to upload files larger than 2MB (provided that you have php settings like upload_max_filesize larger than 2MB) Edited April 10 by pishkus (see edit history) 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