Jump to content

Contact us form - file attachment size restriction?


Recommended Posts

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

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

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

  • 3 months later...
  • 4 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...