We are looking into it. We will get back to you asap with possible solutions.
thanks for your answer! Does the plugin generally support file restrictions and error messages? I would also buy the pro version if it works for me.
Yes, the basic file restriction is also available in the free version but we are facing issues with file restriction in both version, we will be updating really soon.
We have released the new version 2.1. We have fixed all file type restriction errors. Kindly update your plugin with the latest version and test your issue.
Please feel free for any help. Thank you. I appreciate your patience.
I just installed version 2.2, and filetype restriction still doesn’t work.
Could you please provide the page link So we can check the error?
Sorry, it’s in development, so it’s only on my localhost, but there is no error thrown, either php or js, it just allows all files all the time.
This is the shortcode:
[multilinefile evidencefiles limit:131072 filetypes:pdf|docx “Select file”]
But I can add anything:
Until this is fixed, if anyone needs fast solution – I just hardcoded it:
inside span.mfcf7-zl-multiline-sample there is input[type=”file”] which is missing “accept” attribute. So just add it using js or php. I added it in php, and everything works fine (also fixed form’s <lable> tag while I’m at it 🙂 :
echo do_shortcode('[contact-form-7 id="567"]');
$cof = ob_get_clean();
$cof = str_replace('<input type="file" name="evidencefiles"','<input type="file" accept=".pdf,.doc,.docx" name="evidencefiles"',$cof);
$cof = str_replace('<lable>','<label>',$cof);
$cof = str_replace('</lable>','</label>',$cof);
Thank you for your instant solutions.
But have you checked the file restriction after clicking on submit button?
Please let me know. Thanks.