Hi, I've a problem vith an update form. This form has a file field to select an image. On this field there are two validation rules, an accept rule and a max file size rule. It's not required. When I send the form, however, a message appears under the file field, "Please select a file with a valid file type", if I don't select a file. I've found this message in the upload.php file in dmxConnectLib/lib/Validator/Messages/en. Can anyone help me? How can I leave the file field without any file selected? Thank you
Hi Andre, Just test this locally and i have no issue submitting the form without a file selected. Can you tell me where is the validation applied - is it on the server-side, or on the client-side? What are you doing in your action file after upload?
Hi Teo, validation is applied on the client-side (by app-connect). In the action file, after the upload, there's the update query. Unfortunately I can't attach any file to this post but I've done some screenshots of the app connect structure, of the action file and of the update query too. So if you need them let me know. I want to say that if you select an image file in my update form, everything runs very well. Furthermore the update form is very similar to the insert form and this one runs well even if you don't select any file. Thank you for your attention regards