Jacek Es Posted February 12, 2015 Share Posted February 12, 2015 Hi, PrestaShop 1.6.0.8 I don't seem to find an option to set max size for the files being attached to the message via 'Contact us' form. It looks to me that the limit is set to be about 2Mb. Attached files that are larger than 2Mb are simply not delivered and there is no warning that the file is too large, etc. and the message is sent. Would anyone let me know where this value can be set? Link to comment Share on other sites More sharing options...
El Patron Posted February 12, 2015 Share Posted February 12, 2015 try this: back office-->preferences-->'upload quota' increase and retest Link to comment Share on other sites More sharing options...
helldog2004 Posted February 12, 2015 Share Posted February 12, 2015 Or else check your themes/your_theme/contact-form.tpl You might be able to find a line similar to this: <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> Of which the 2000000 is 2MB in size. You can change this to anything you like. 1 Link to comment Share on other sites More sharing options...
El Patron Posted February 12, 2015 Share Posted February 12, 2015 Or else check your themes/your_theme/contact-form.tpl You might be able to find a line similar to this: <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> Of which the 2000000 is 2MB in size. You can change this to anything you like. Good catch helldog...why it's hard coded like that is well, a bug. (default bootstrap coded the way depicted)...ave maria Follow helldog's advice. Link to comment Share on other sites More sharing options...
Jacek Es Posted February 12, 2015 Author Share Posted February 12, 2015 helldog2004 - spot on! This did the job. Thank you El Patron - back office-->preferences-->'upload quota' refers to uploads made by store admins and not by customers. It doesn't have impact on uploads via 'Contact us' page... but thank you. This is solved ;-) Link to comment Share on other sites More sharing options...
Marlon Carvalho Posted June 2, 2015 Share Posted June 2, 2015 (edited) Which file could I edit to upload all files on contact us page, cause I wanna set CDR, AI, PSD extesions, anyone knows? Edited June 2, 2015 by Marlon Carvalho (see edit history) Link to comment Share on other sites More sharing options...
miki22 Posted October 12, 2015 Share Posted October 12, 2015 Which file could I edit to upload all files on contact us page, cause I wanna set CDR, AI, PSD extesions, anyone knows? Wrong topic. But look into ContactController.php line: $extension = array('.txt', '.rtf', '.doc', '.docx', '.pdf', '.zip', '.png', '.jpeg', '.gif', '.jpg'); 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