Contact form file uploads and validations

1 reply · opened Oct 8, 2020

TThenaaKOct 8, 2020

Hi,

  1. I would like to limit Contact form file upload size limit to 5mb and upload file extensions like .doc, xl and pdf, where and how to limit this.
    2.And what is the default file size of the form se as per the template.
    3.Phone number field validation should be enabled anywhere?

Thanks for your support!

SSemicolon WebSTAFFOct 8, 2020

Hello,

  1. File Size Limits are not included by default and you will need to make Customizations to the include/form.php to include this using your own codes. We will work on integrating this by default and try releasing an update soon. For Accepted File Types, you can consider using this Example: https://www.w3schools.com/tags/att_input_accept.asp.

  2. It depends on the upload_max_filesize setting defined in your Server's PHP.ini Configuration File.

  3. Again, this is not included by default and you will need to use your own Custom Codes in order to enable this. You can check more about Validations in this Documentation: https://jqueryvalidation.org/documentation/ .

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard