TWDesign Posted March 9, 2012 Share Posted March 9, 2012 I want to add some kind of information to the "Contact Us" form about the max file size limit for attachments. Is that limit determined by the Prestashop software, or by my Hosting company or BOTH. How could I find out those details? Link to comment Share on other sites More sharing options...
AKJV Posted March 14, 2012 Share Posted March 14, 2012 I have been looking for the same information and found out that the upload limit is hardcoded in themes/yourtheme/contact-form.tpl. Open that file and look for this line: <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> So as it seems, the limit is set to approx. 2 MB. You can change this limit by changing the number in value="2000000". Though I'm not sure how high this number can be set: that may depend on your server configuration or perhaps there's another limit for this somewhere else in Prestashop. Probably best to test this by uploading files of different sizes on your Prestashop installation. Please keep in mind that you have to enable 'Force compile' in your backoffice to implement changes to tpl files. Link to comment Share on other sites More sharing options...
TWDesign Posted March 15, 2012 Author Share Posted March 15, 2012 Thank you. Good to know that it is baked into the theme. You will also need to change your server settings in the php.ini (if your host gives you one of those) in order to raise the max file size limit. Link to comment Share on other sites More sharing options...
Recommended Posts