How to check if there is a file upload needed or not with form submit

I have server connect form to insert data and upload an image. The image field is not mandatory.
How do I configure server connect with condition to check if file upload is needed or not. Right now, server connect gives error when no image is chosen.
It’s probably very simple, but I just can’t get the solution. Please help!

Community Page
Last updated: