I’m currently looking for a way, to check if a user has uploaded files within a form. We have three upload inputs in our form – but the Form should only be submitted to the customer, if the user used the inputs to upload three files.
If the user clicks the submit-button, while there is no attachment uploaded, a Warning-Message should popup, to warn the user about the missing files.
Is this possible?
if that’s a “must be” condition, then you can simply show/hide the upload controls(html input type = file) one by one. i.e. when the user uploads one file, the other appears, after the second, the third one appears and finally after the third one is successfully uploaded, the submit button is visible. This way the user cannot submit form until all the files are uploaded. For safety, you can also add a server-side check before committing any user entries.