fitgura Posted March 5, 2016 Share Posted March 5, 2016 Hi All! Please help me find out waht should be the problem, or where can I find a setting for Prestashop 1.6.1.4 as the system do not let upload bigger than 130 Kbyte jpg file in BO/Preferences/Images the setting of "Maximum file size of product customization pictures " is 8388608 (8M) as usual The server settings as see in php.ini is set to 128 MB. The folder permissions for img/p... 755 I do not know what prevent the upload bigger than 130Kb files Of course it happens if I want to upload via built in file uploader for CMS, for banners etc... Is there any idea please? Thank you Link to comment Share on other sites More sharing options...
fitgura Posted March 7, 2016 Author Share Posted March 7, 2016 Is it a Bug? Is there any idea please? Link to comment Share on other sites More sharing options...
Kanenas Posted April 26, 2016 Share Posted April 26, 2016 Same issue here. 130 kb is all I can upload. I have checked php.ini and admin>pref>image size and no joy. Very annoying. This kind of rubbish makes you want to go to shopify which is probably cheaper considering you need to marry a developer to get through prestashop. Please let me know if you have found a solution. Link to comment Share on other sites More sharing options...
Kanenas Posted April 26, 2016 Share Posted April 26, 2016 Is it a Bug? Is there any idea please? I am having the same problem and the idea of migrating to shopify is becoming very enticing... that or to marry a prestashop developer Link to comment Share on other sites More sharing options...
shokinro Posted April 27, 2016 Share Posted April 27, 2016 that is very strange, I just tried it on 1.6.1.4 and 1.6.1.5 on my local environment, it seems fine, I can upload more than 6M image size. is there any error occurring and does not it take a lot of time to upload? it could be something limited by your server. you may try to create a simple PHP script to upload a file for testing purpose and run it out side of PrestaShop to see if it works or not. Link to comment Share on other sites More sharing options...
Kanenas Posted April 27, 2016 Share Posted April 27, 2016 Thanks guys but after spending the entire day I have managed to fix by disabling the mod_sec on cpanel. Not sure how safe this is in the long run, but its a way to upload large images. Other posts on this forum suggested disabling mod security on PS back-end, but that made no difference at all to me. The guys at inmotion hosting are also pretty dull so I spent the entire day trying everything possible to reach this solution. If anyone could suggest a work-around for security (wehn I disable mod_sec) that would be great! Link to comment Share on other sites More sharing options...
shokinro Posted April 27, 2016 Share Posted April 27, 2016 @Kaneas thanks for update and sharing. Thanks guys but after spending the entire day I have managed to fix by disabling the mod_sec on cpanel. Not sure how safe this is in the long run, but its a way to upload large images. really a good news, congratulations. I think It is better to check if there any other places in your website that user cam upload files, make sure you check upload size in the code to limit the size to avoid misuse.Make sure only authorized users can upload files. Other posts on this forum suggested disabling mod security on PS back-end, but that made no difference at all to me. Some of parameters settings may not be able to override, because hosting server configuration has disable the override. Just like some parameters php.ini at store level does not work. Link to comment Share on other sites More sharing options...
fitgura Posted April 27, 2016 Author Share Posted April 27, 2016 Hi folks! Finally I find out what a problem is: It happens when your webserver configured to Fast-CGI ------ find the next file on ubuntu /debian 14.04 etc server /etc/apache2/mods-available/fcgid.conf And add the below mentioned code <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi FcgidConnectTimeout 20 FcgidMaxRequestLen 51200000 </IfModule> That means you can translate in prestashop above 2500 string, or upload files until 6,1 MB If you do not know how to set this, ask your hosting provider do it for you... I hope it is help Link to comment Share on other sites More sharing options...
shokinro Posted April 27, 2016 Share Posted April 27, 2016 @fitgura thanks for sharing the information, it seems that the cause of your issue is different from the one @Kanenas was faced. It is different scenario. thanks again for for sharing. 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