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!

Never mind, I found the answer:

Make a condition to check if the file field is NOT POSTED:


1 Like

Stole this from another topic. This will only upload a file if the file field is filled with an image selected. Easier than if>else manually