Hi @hommealone
Is there a way to make it a required field: [mfile* field-name (etc)… ?
– You just need to add * on mfile tag like this [mfile* ]
Is there a way to validate whether files were uploaded?
– You have to check it manually in order to verify if the files were uploaded.
Is there a way to validate whether files were mailed?
– Try to install contact form 7 database or any other plugin that save each submission of cf7 then check each entry to see if there’s any files or attachment.
Please let me know if you have any other questions.
I was wondering/asking if the built-in CF7 form validation, or some custom javascript, could tell if there is a file queued for upload when the submit button is clicked.
For example, if I make it a required field using [mfile* ]
does it automatically check if a file is queued up, or would I need some custom javascript for that? If custom script is needed, can you suggest any?
@hommealone The validation process for the file upload is managed in PHP (no javascript), similar to other CF7 fields, using the wpcf7_validate
filter. When the user clicks the submit button, the file upload will be automatically validated to ensure it is not empty. If the file is empty, a message will be returned to the user.